Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
1d8ec670
Commit
1d8ec670
authored
Nov 27, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API updates for stash.h
parent
ff6b5ac9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
include/git2/stash.h
+8
-9
src/stash.c
+1
-1
No files found.
include/git2/stash.h
View file @
1d8ec670
...
...
@@ -18,7 +18,7 @@
*/
GIT_BEGIN_DECL
enum
{
typedef
enum
{
GIT_STASH_DEFAULT
=
0
,
/* All changes already added to the index
...
...
@@ -35,7 +35,7 @@ enum {
* cleaned up from the working directory
*/
GIT_STASH_INCLUDE_IGNORED
=
(
1
<<
2
),
};
}
git_stash_flags
;
/**
* Save the local modifications to a new stash.
...
...
@@ -49,18 +49,17 @@ enum {
*
* @param message Optional description along with the stashed state.
*
* @param flags Flags to control the stashing process.
* @param flags Flags to control the stashing process.
(see GIT_STASH_* above)
*
* @return 0 on success, GIT_ENOTFOUND where there's nothing to stash,
* or error code.
*/
GIT_EXTERN
(
int
)
git_stash_save
(
git_oid
*
out
,
git_repository
*
repo
,
git_signature
*
stasher
,
const
char
*
message
,
u
int32_
t
flags
);
u
nsigned
in
t
flags
);
/**
* When iterating over all the stashed states, callback that will be
...
...
@@ -71,16 +70,16 @@ GIT_EXTERN(int) git_stash_save(
*
* @param message The stash message.
*
* @param stash_
o
id The commit oid of the stashed state.
* @param stash_id The commit oid of the stashed state.
*
* @param payload Extra parameter to callback function.
*
* @return 0 on success, GIT_EUSER on non-zero callback, or error code
*/
typedef
int
(
*
stash_cb
)(
typedef
int
(
*
git_
stash_cb
)(
size_t
index
,
const
char
*
message
,
const
git_oid
*
stash_
o
id
,
const
git_oid
*
stash_id
,
void
*
payload
);
/**
...
...
@@ -99,7 +98,7 @@ typedef int (*stash_cb)(
*/
GIT_EXTERN
(
int
)
git_stash_foreach
(
git_repository
*
repo
,
stash_cb
callback
,
git_
stash_cb
callback
,
void
*
payload
);
/**
...
...
src/stash.c
View file @
1d8ec670
...
...
@@ -579,7 +579,7 @@ cleanup:
int
git_stash_foreach
(
git_repository
*
repo
,
stash_cb
callback
,
git_
stash_cb
callback
,
void
*
payload
)
{
git_reference
*
stash
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment