Skip to content

Commit 2274993

Browse files
committed
Make the git_signature const in the stash API.
1 parent 82cb8e2 commit 2274993

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/git2/stash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef enum {
5757
GIT_EXTERN(int) git_stash_save(
5858
git_oid *out,
5959
git_repository *repo,
60-
git_signature *stasher,
60+
const git_signature *stasher,
6161
const char *message,
6262
unsigned int flags);
6363

src/stash.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static int build_tree_from_index(git_tree **out, git_index *index)
117117
static int commit_index(
118118
git_commit **i_commit,
119119
git_index *index,
120-
git_signature *stasher,
120+
const git_signature *stasher,
121121
const char *message,
122122
const git_commit *parent)
123123
{
@@ -267,7 +267,7 @@ static int build_untracked_tree(
267267
static int commit_untracked(
268268
git_commit **u_commit,
269269
git_index *index,
270-
git_signature *stasher,
270+
const git_signature *stasher,
271271
const char *message,
272272
git_commit *i_commit,
273273
uint32_t flags)
@@ -354,7 +354,7 @@ static int build_workdir_tree(
354354
static int commit_worktree(
355355
git_oid *w_commit_oid,
356356
git_index *index,
357-
git_signature *stasher,
357+
const git_signature *stasher,
358358
const char *message,
359359
git_commit *i_commit,
360360
git_commit *b_commit,
@@ -431,7 +431,7 @@ static int prepare_worktree_commit_message(
431431
static int update_reflog(
432432
git_oid *w_commit_oid,
433433
git_repository *repo,
434-
git_signature *stasher,
434+
const git_signature *stasher,
435435
const char *message)
436436
{
437437
git_reference *stash = NULL;
@@ -510,7 +510,7 @@ static int reset_index_and_workdir(
510510
int git_stash_save(
511511
git_oid *out,
512512
git_repository *repo,
513-
git_signature *stasher,
513+
const git_signature *stasher,
514514
const char *message,
515515
uint32_t flags)
516516
{

0 commit comments

Comments
 (0)