diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-04-18 21:31:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-04-18 21:31:29 -0700 |
commit | 779f9467ebcd345e60118db89e2c0a4b38204607 (patch) | |
tree | baa2358b904b55580ab4f07488ebcd16051775e5 /commit.h | |
parent | fab45027e0cdf3ebdade137cb3740604da7bb4bc (diff) | |
parent | 636db2c036d0f26bd0b1139b7abe04bdecf3e036 (diff) | |
download | git-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |