Skip to content

Commit a8a6e06

Browse files
sorganovgitster
authored andcommitted
stash: get rid of unused argument in stash_staged()
Unused 'ps' argument was a left-over from original copy-paste of stash_patch(). Removed. Signed-off-by: Sergey Organov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 41a28eb commit a8a6e06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/stash.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,8 @@ static int save_untracked_files(struct stash_info *info, struct strbuf *msg,
11321132
return ret;
11331133
}
11341134

1135-
static int stash_staged(struct stash_info *info, const struct pathspec *ps,
1136-
struct strbuf *out_patch, int quiet)
1135+
static int stash_staged(struct stash_info *info, struct strbuf *out_patch,
1136+
int quiet)
11371137
{
11381138
int ret = 0;
11391139
struct child_process cp_diff_tree = CHILD_PROCESS_INIT;
@@ -1370,7 +1370,7 @@ static int do_create_stash(const struct pathspec *ps, struct strbuf *stash_msg_b
13701370
goto done;
13711371
}
13721372
} else if (only_staged) {
1373-
ret = stash_staged(info, ps, patch, quiet);
1373+
ret = stash_staged(info, patch, quiet);
13741374
if (ret < 0) {
13751375
if (!quiet)
13761376
fprintf_ln(stderr, _("Cannot save the current "

0 commit comments

Comments
 (0)