path: root/sequencer.h
diff options
authorPhillip Wood <>2019-12-06 16:06:11 (GMT)
committerJunio C Hamano <>2019-12-06 17:32:02 (GMT)
commit901ba7b1efe8ba9464aac528ecd46e8dd4f01003 (patch)
tree546da93b1d4d3f4360d84064836cb62396a690ce /sequencer.h
parent8d57f7574993deb906461d4267373e1c9c733053 (diff)
commit: encapsulate determine_whence() for sequencer
Working out which command wants to create a commit requires detailed knowledge of the sequencer internals and that knowledge is going to increase in subsequent commits. With that in mind lets encapsulate that knowledge in sequencer.c rather than spreading it into builtin/commit.c. Signed-off-by: Phillip Wood <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'sequencer.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/sequencer.h b/sequencer.h
index 9f9ae29..e56e29c 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -3,12 +3,12 @@
#include "cache.h"
#include "strbuf.h"
+#include "wt-status.h"
struct commit;
struct repository;
const char *git_path_commit_editmsg(void);
-const char *git_path_seq_dir(void);
const char *rebase_path_todo(void);
const char *rebase_path_todo_backup(void);
@@ -208,4 +208,5 @@ int write_basic_state(struct replay_opts *opts, const char *head_name,
void sequencer_post_commit_cleanup(struct repository *r, int verbose);
int sequencer_get_last_command(struct repository* r,
enum replay_action *action);
+int sequencer_determine_whence(struct repository *r, enum commit_whence *whence);
#endif /* SEQUENCER_H */