summaryrefslogtreecommitdiffstats
path: root/sequencer.h
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-04-07 16:28:03 +0200
committerJunio C Hamano <gitster@pobox.com>2020-04-10 18:28:02 +0200
commit0816f1dff8715e80b5fa0b73b48dd36ef9e1e381 (patch)
tree9dc6ad72d6acdb106630be4c4a9255445a7091d1 /sequencer.h
parentrebase: generify create_autostash() (diff)
downloadgit-0816f1dff8715e80b5fa0b73b48dd36ef9e1e381.tar.xz
git-0816f1dff8715e80b5fa0b73b48dd36ef9e1e381.zip
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.h2
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)