summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-04-07 14:28:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-10 16:28:02 (GMT)
commit0816f1dff8715e80b5fa0b73b48dd36ef9e1e381 (patch)
tree9dc6ad72d6acdb106630be4c4a9255445a7091d1 /sequencer.h
parent9bb3dea45d69921578b1729c7dc7b12bfbe6f69e (diff)
downloadgit-0816f1dff8715e80b5fa0b73b48dd36ef9e1e381.zip
git-0816f1dff8715e80b5fa0b73b48dd36ef9e1e381.tar.gz
git-0816f1dff8715e80b5fa0b73b48dd36ef9e1e381.tar.bz2
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 ab68614..9d1fe0c 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)