FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/stash.js at node-api · Chen-Software/nodegit · GitHub
Chen-Software
nodegit
Repository navigation
Code
Pull requests
23
(23)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
stash.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (12 loc) · 473 Bytes
Breadcrumbs
nodegit
/
lib
/
stash.js
Copy path
File metadata and controls
16 lines (12 loc) · 473 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
var
NodeGit
=
require
(
"../"
)
;
var
Stash
=
NodeGit
.
Stash
;
var
_foreach
=
Stash
.
foreach
;
// Override Stash.foreach to eliminate the need to pass null payload
Stash
.
foreach
=
function
(
repo
,
callback
)
{
function
wrappedCallback
(
index
,
message
,
oid
)
{
// We need to copy the OID since libgit2 types are getting cleaned up
// incorrectly right now in callbacks
return
callback
(
index
,
message
,
oid
.
copy
(
)
)
;
}
return
_foreach
(
repo
,
wrappedCallback
,
null
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL