diff mbox series

stash: get rid of unused argument in stash_staged()

Message ID 87k0hx5z81.fsf_-_@osv.gnss.ru (mailing list archive)
State Accepted
Commit 50335e8eeba0ea615566f3ea45091266d82fd9f0
Headers show
Series stash: get rid of unused argument in stash_staged() | expand

Commit Message

Sergey Organov Oct. 28, 2021, 8:29 a.m. UTC
Unused 'ps' argument was a left-over from original copy-paste of
stash_patch(). Removed.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
---
 builtin/stash.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Junio C Hamano Oct. 28, 2021, 9:17 p.m. UTC | #1
Sergey Organov <sorganov@gmail.com> writes:

> Unused 'ps' argument was a left-over from original copy-paste of
> stash_patch(). Removed.
>
> Signed-off-by: Sergey Organov <sorganov@gmail.com>
> ---

Thanks.  Will queue.
diff mbox series

Patch

diff --git a/builtin/stash.c b/builtin/stash.c
index 8d6f0e582ce0..18c812bbe032 100644
--- a/builtin/stash.c
+++ b/builtin/stash.c
@@ -1132,8 +1132,8 @@  static int save_untracked_files(struct stash_info *info, struct strbuf *msg,
 	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 "