Commit 2274993b by Etienne Samson

Make the git_signature const in the stash API.

parent 82cb8e23
...@@ -57,7 +57,7 @@ typedef enum { ...@@ -57,7 +57,7 @@ typedef enum {
GIT_EXTERN(int) git_stash_save( GIT_EXTERN(int) git_stash_save(
git_oid *out, git_oid *out,
git_repository *repo, git_repository *repo,
git_signature *stasher, const git_signature *stasher,
const char *message, const char *message,
unsigned int flags); unsigned int flags);
......
...@@ -117,7 +117,7 @@ static int build_tree_from_index(git_tree **out, git_index *index) ...@@ -117,7 +117,7 @@ static int build_tree_from_index(git_tree **out, git_index *index)
static int commit_index( static int commit_index(
git_commit **i_commit, git_commit **i_commit,
git_index *index, git_index *index,
git_signature *stasher, const git_signature *stasher,
const char *message, const char *message,
const git_commit *parent) const git_commit *parent)
{ {
...@@ -267,7 +267,7 @@ cleanup: ...@@ -267,7 +267,7 @@ cleanup:
static int commit_untracked( static int commit_untracked(
git_commit **u_commit, git_commit **u_commit,
git_index *index, git_index *index,
git_signature *stasher, const git_signature *stasher,
const char *message, const char *message,
git_commit *i_commit, git_commit *i_commit,
uint32_t flags) uint32_t flags)
...@@ -354,7 +354,7 @@ cleanup: ...@@ -354,7 +354,7 @@ cleanup:
static int commit_worktree( static int commit_worktree(
git_oid *w_commit_oid, git_oid *w_commit_oid,
git_index *index, git_index *index,
git_signature *stasher, const git_signature *stasher,
const char *message, const char *message,
git_commit *i_commit, git_commit *i_commit,
git_commit *b_commit, git_commit *b_commit,
...@@ -431,7 +431,7 @@ cleanup: ...@@ -431,7 +431,7 @@ cleanup:
static int update_reflog( static int update_reflog(
git_oid *w_commit_oid, git_oid *w_commit_oid,
git_repository *repo, git_repository *repo,
git_signature *stasher, const git_signature *stasher,
const char *message) const char *message)
{ {
git_reference *stash = NULL; git_reference *stash = NULL;
...@@ -510,7 +510,7 @@ static int reset_index_and_workdir( ...@@ -510,7 +510,7 @@ static int reset_index_and_workdir(
int git_stash_save( int git_stash_save(
git_oid *out, git_oid *out,
git_repository *repo, git_repository *repo,
git_signature *stasher, const git_signature *stasher,
const char *message, const char *message,
uint32_t flags) uint32_t flags)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment