summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-04-18 21:31:29 -0700
committerJunio C Hamano <gitster@pobox.com>2010-04-18 21:31:29 -0700
commit779f9467ebcd345e60118db89e2c0a4b38204607 (patch)
treebaa2358b904b55580ab4f07488ebcd16051775e5 /commit.h
parentfab45027e0cdf3ebdade137cb3740604da7bb4bc (diff)
parent636db2c036d0f26bd0b1139b7abe04bdecf3e036 (diff)
downloadgit-779f9467ebcd345e60118db89e2c0a4b38204607.tar.gz
Merge branch 'jg/auto-initialize-notes-with-percent-n-in-format'
* jg/auto-initialize-notes-with-percent-n-in-format: t3301: add tests to use --format="%N" pretty: Initialize notes if %N is used
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 3cf5166581..26ec8c0d1c 100644
--- a/commit.h
+++ b/commit.h
@@ -74,11 +74,16 @@ struct pretty_print_context
struct reflog_walk_info *reflog_info;
};
+struct userformat_want {
+ unsigned notes:1;
+};
+
extern int has_non_ascii(const char *text);
struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
extern char *reencode_commit_message(const struct commit *commit,
const char **encoding_p);
extern void get_commit_format(const char *arg, struct rev_info *);
+extern void userformat_find_requirements(const char *fmt, struct userformat_want *w);
extern void format_commit_message(const struct commit *commit,
const char *format, struct strbuf *sb,
const struct pretty_print_context *context);