summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-04-07 14:28:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-10 16:28:02 (GMT)
commit804fe3155761e73c3dcc4e162ddb3ff560f16cd7 (patch)
treec71f73a82ac0dbbad6983ca7d853e9d35719c351 /sequencer.h
parent12b6e1367af429628dbaeaa0c7518cacc620d786 (diff)
downloadgit-804fe3155761e73c3dcc4e162ddb3ff560f16cd7.zip
git-804fe3155761e73c3dcc4e162ddb3ff560f16cd7.tar.gz
git-804fe3155761e73c3dcc4e162ddb3ff560f16cd7.tar.bz2
sequencer: implement apply_autostash_oid()
Split apply_save_autostash() into apply_autostash_oid() and apply_save_autostash() where the former operates on an OID string and the latter reads the OID from a file before passing it into apply_save_autostash_oid(). This function is required for a future commmit which will rely on being able to apply an autostash whose OID is stored as a string. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sequencer.h b/sequencer.h
index 306d4ce..5a85eee 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -195,6 +195,7 @@ void create_autostash(struct repository *r, const char *path,
const char *default_reflog_action);
int save_autostash(const char *path);
int apply_autostash(const char *path);
+int apply_autostash_oid(const char *stash_oid);
#define SUMMARY_INITIAL_COMMIT (1 << 0)
#define SUMMARY_SHOW_AUTHOR_DATE (1 << 1)