diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-04-07 10:28:03 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-10 09:28:02 -0700 |
commit | 0816f1dff8715e80b5fa0b73b48dd36ef9e1e381 (patch) | |
tree | 9dc6ad72d6acdb106630be4c4a9255445a7091d1 /sequencer.h | |
parent | 9bb3dea45d69921578b1729c7dc7b12bfbe6f69e (diff) | |
download | git-0816f1dff8715e80b5fa0b73b48dd36ef9e1e381.tar.gz |
sequencer: extract perform_autostash() from rebase
Lib-ify the autostash code by extracting perform_autostash() from rebase
into sequencer. In a future commit, this will be used to implement
`--autostash` in other builtins.
This patch is best viewed with `--color-moved`.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
-rw-r--r-- | sequencer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sequencer.h b/sequencer.h index ab686146d1..9d1fe0ccfb 100644 --- a/sequencer.h +++ b/sequencer.h @@ -191,6 +191,8 @@ 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); int apply_autostash(const char *path); #define SUMMARY_INITIAL_COMMIT (1 << 0) |