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 <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sergey Organov committed
Oct 28, 2021 at 11:29 UTC
a8a6e0682d1749b646aabbaad571ee5dc3634026
1 file changed
+3
-3
builtin/stash.c
+3
-3
@@ -1132,8 +1132,8 @@ done:
1132
return ret;
1133
}
1134
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)
1137
{
1138
int ret = 0;
1139
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
1370
goto done;
1371
}
1372
} else if (only_staged) {
1373
- ret = stash_staged(info, ps, patch, quiet);
1373
+ ret = stash_staged(info, patch, quiet);
1374
if (ret < 0) {
1375
if (!quiet)
1376
fprintf_ln(stderr, _("Cannot save the current "