FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/index.js at master · dawnsgithub/nodegit · GitHub
dawnsgithub
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (26 loc) · 920 Bytes
Breadcrumbs
nodegit
/
lib
/
index.js
Copy path
File metadata and controls
34 lines (26 loc) · 920 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
33
34
var
NodeGit
=
require
(
"../"
)
;
var
Index
=
NodeGit
.
Index
;
var
_addAll
=
Index
.
prototype
.
addAll
;
var
_removeAll
=
Index
.
prototype
.
removeAll
;
var
_updateAll
=
Index
.
prototype
.
updateAll
;
Index
.
prototype
.
addAll
=
function
(
pathspec
,
flags
,
matchedCallback
)
{
return
_addAll
.
call
(
this
,
pathspec
||
"*"
,
flags
,
matchedCallback
,
null
)
;
}
;
/**
* Return an array of the entries in this index.
*
@return
{
Array<IndexEntry>
} an array of IndexEntrys
*/
Index
.
prototype
.
entries
=
function
(
)
{
var
size
=
this
.
entryCount
(
)
;
var
result
=
[
]
;
for
(
var
i
=
0
;
i
<
size
;
i
++
)
{
result
.
push
(
this
.
getByIndex
(
i
)
)
;
}
return
result
;
}
;
Index
.
prototype
.
removeAll
=
function
(
pathspec
,
matchedCallback
)
{
return
_removeAll
.
call
(
this
,
pathspec
||
"*"
,
matchedCallback
,
null
)
;
}
;
Index
.
prototype
.
updateAll
=
function
(
pathspec
,
matchedCallback
)
{
return
_updateAll
.
call
(
this
,
pathspec
||
"*"
,
matchedCallback
,
null
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL