diff options
author | Sergey Organov <sorganov@gmail.com> | 2021-10-28 08:29:34 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-28 21:17:14 (GMT) |
commit | a8a6e0682d1749b646aabbaad571ee5dc3634026 (patch) | |
tree | 11f06137cff3332f12194bd8156189cd08c47973 /builtin | |
parent | 41a28eb6c124bd06ca4a4fea9a1da3178a09467b (diff) | |
download | git-a8a6e0682d1749b646aabbaad571ee5dc3634026.zip git-a8a6e0682d1749b646aabbaad571ee5dc3634026.tar.gz git-a8a6e0682d1749b646aabbaad571ee5dc3634026.tar.bz2 |
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>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/stash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/stash.c b/builtin/stash.c index 8d6f0e5..18c812b 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 " |