FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/diff_line.js at v0.26.3 · nodegit/nodegit · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nodegit
/
nodegit
Public
Notifications
You must be signed in to change notification settings
Fork
700
Star
5.8k
Code
Issues
343
Pull requests
20
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
diff_line.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (26 loc) · 601 Bytes
Breadcrumbs
nodegit
/
lib
/
diff_line.js
Copy path
File metadata and controls
32 lines (26 loc) · 601 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var
NodeGit
=
require
(
"../"
)
;
var
DiffLine
=
NodeGit
.
DiffLine
;
var
_rawContent
=
DiffLine
.
prototype
.
content
;
/**
* The relevant line
*
@return
{
String
}
*/
DiffLine
.
prototype
.
content
=
function
(
)
{
if
(
!
this
.
_cache
)
{
this
.
_cache
=
{
}
;
}
if
(
!
this
.
_cache
.
content
)
{
this
.
_cache
.
content
=
new
Buffer
(
this
.
rawContent
(
)
)
.
slice
(
0
,
this
.
contentLen
(
)
)
.
toString
(
"utf8"
)
;
}
return
this
.
_cache
.
content
;
}
;
/**
* The non utf8 translated text
*
@return
{
String
}
*/
DiffLine
.
prototype
.
rawContent
=
function
(
)
{
return
_rawContent
.
call
(
this
)
;
}
;
NodeGit
.
DiffLine
=
DiffLine
;
Back
|
FazBrowse Home
|
New Git URL