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>maint
parent
41a28eb6c1
commit
a8a6e0682d
|
@ -1132,8 +1132,8 @@ done:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int stash_staged(struct stash_info *info, const struct pathspec *ps,
|
static int stash_staged(struct stash_info *info, struct strbuf *out_patch,
|
||||||
struct strbuf *out_patch, int quiet)
|
int quiet)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct child_process cp_diff_tree = CHILD_PROCESS_INIT;
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
} else if (only_staged) {
|
} else if (only_staged) {
|
||||||
ret = stash_staged(info, ps, patch, quiet);
|
ret = stash_staged(info, patch, quiet);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (!quiet)
|
if (!quiet)
|
||||||
fprintf_ln(stderr, _("Cannot save the current "
|
fprintf_ln(stderr, _("Cannot save the current "
|
||||||
|
|
Loading…
Reference in New Issue