summaryrefslogtreecommitdiffstats
path: root/sequencer.h
diff options
context:
space:
mode:
authorJiang Xin <worldhello.net@gmail.com>2026-04-04 11:53:49 +0800
committerJiang Xin <worldhello.net@gmail.com>2026-04-04 11:57:24 +0800
commitfc2a6741f71c71ddc7e1cc71c8f6289fcda2ff2d (patch)
treebaec3af2039bd59c01e049f3bd9e10e233d44a1d /sequencer.h
parent82747b07cc0f7d6fd8237633c1eb533050efba3d (diff)
parent8de2f1b07a8053d7f1aad70dc1131d6afcf5a28a (diff)
downloadgit-fc2a6741f71c71ddc7e1cc71c8f6289fcda2ff2d.tar.gz
git-fc2a6741f71c71ddc7e1cc71c8f6289fcda2ff2d.zip
Merge branch 'master' of https://github.com/git/git
Upstream adds 18 new translatable messages. * 'master' of https://github.com/git/git: (41 commits) A bit more on top of 2.54-rc0 ... Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Diffstat (limited to 'sequencer.h')
-rw-r--r--sequencer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sequencer.h b/sequencer.h
index bea20da085..a6fa670c7c 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -274,4 +274,17 @@ int sequencer_determine_whence(struct repository *r, enum commit_whence *whence)
*/
int sequencer_get_update_refs_state(const char *wt_dir, struct string_list *refs);
+/*
+ * Format a revert commit message with appropriate 'Revert "<subject>"' or
+ * 'Reapply "<subject>"' prefix and 'This reverts commit <ref>.' body.
+ * When use_commit_reference is set, <ref> is an abbreviated hash with
+ * subject and date; otherwise the full hex hash is used.
+ */
+void sequencer_format_revert_message(struct repository *r,
+ const char *subject,
+ const struct commit *commit,
+ const struct commit *parent,
+ bool use_commit_reference,
+ struct strbuf *message);
+
#endif /* SEQUENCER_H */