From: Sergey Organov Date: Thu, 28 Oct 2021 08:29:34 +0000 (+0300) Subject: stash: get rid of unused argument in stash_staged() X-Git-Tag: v2.35.0-rc0~133^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8a6e0682d1749b646aabbaad571ee5dc3634026;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/stash.c b/builtin/stash.c index 8d6f0e582c..18c812bbe0 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -1132,8 +1132,8 @@ done: return ret; } -static int stash_staged(struct stash_info *info, const struct pathspec *ps, - struct strbuf *out_patch, int quiet) +static int stash_staged(struct stash_info *info, struct strbuf *out_patch, + int quiet) { int ret = 0; 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 goto done; } } else if (only_staged) { - ret = stash_staged(info, ps, patch, quiet); + ret = stash_staged(info, patch, quiet); if (ret < 0) { if (!quiet) fprintf_ln(stderr, _("Cannot save the current "