]> git.ipfire.org Git - thirdparty/git.git/commitdiff
stash: get rid of unused argument in stash_staged()
authorSergey Organov <sorganov@gmail.com>
Thu, 28 Oct 2021 08:29:34 +0000 (11:29 +0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Oct 2021 21:17:14 +0000 (14:17 -0700)
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>
builtin/stash.c

index 8d6f0e582ce04c40c0a631b309b9aab847e82680..18c812bbe032cc24e57bd3083822bb4753dfa1ca 100644 (file)
@@ -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 "