FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/diff.js at v0.2.5 · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
diff.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (18 loc) · 505 Bytes
Breadcrumbs
nodegit
/
lib
/
diff.js
Copy path
File metadata and controls
23 lines (18 loc) · 505 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
var
NodeGit
=
require
(
"../"
)
;
var
Patch
=
require
(
"./patch"
)
;
var
ConvenientPatch
=
require
(
"./convenient_patch"
)
;
var
Diff
=
NodeGit
.
Diff
;
/**
* Retrieve patches in this difflist
*
*
@return
{
[ConvenientPatch]
} an array of ConvenientPatches
*/
Diff
.
prototype
.
patches
=
function
(
)
{
var
size
=
this
.
numDeltas
(
)
;
var
result
=
[
]
;
for
(
var
i
=
0
;
i
<
size
;
i
++
)
{
result
.
push
(
new
ConvenientPatch
(
this
.
getDelta
(
i
)
,
Patch
.
fromDiff
(
this
,
i
)
)
)
;
}
return
result
;
}
;
module
.
exports
=
Diff
;
Back
|
FazBrowse Home
|
New Git URL