diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2022-01-26 16:05:44 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-26 23:08:53 +0300 |
commit | b7de153bd9332a992baa6f937372f0b1833f61e5 (patch) | |
tree | 6e240d23a6a0d2a85262d9588f52994276f3c241 /sequencer.h | |
parent | 1526d0fcfd20efca24bc96a4bc14c8d5459ec470 (diff) |
create_autostash(): remove unneeded parameter
The default_reflog parameter of create_autostash() is passed to
reset_head(). However as creating a stash does not involve updating
any refs the parameter is not used by reset_head(). Removing the
parameter from create_autostash() simplifies the callers.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
-rw-r--r-- | sequencer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sequencer.h b/sequencer.h index 05a7d2ba6b..da64473636 100644 --- a/sequencer.h +++ b/sequencer.h @@ -197,8 +197,7 @@ void commit_post_rewrite(struct repository *r, const struct commit *current_head, const struct object_id *new_head); -void create_autostash(struct repository *r, const char *path, - const char *default_reflog_action); +void create_autostash(struct repository *r, const char *path); int save_autostash(const char *path); int apply_autostash(const char *path); int apply_autostash_oid(const char *stash_oid); |