diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-09-02 13:25:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-02 13:25:04 -0700 |
commit | 44ceb79f84b0f339147d2d44e4bb50cc472be03e (patch) | |
tree | 207c1f0e269f9d99602ae9043ad6a259428a9831 /commit.h | |
parent | 56f214e0716dec043b50a7e1e8cc181be2ef7df2 (diff) | |
parent | b9c7d6e4330e3dcdb3b3e5f013e5667e47555c95 (diff) | |
download | git-44ceb79f84b0f339147d2d44e4bb50cc472be03e.tar.gz |
Merge branch 'jk/pretty-empty-format'
"git log --pretty/format=" with an empty format string did not mean
the more obvious "No output whatsoever" but "Use default format",
which was counterintuitive.
* jk/pretty-empty-format:
pretty: make empty userformats truly empty
pretty: treat "--format=" as an empty userformat
revision: drop useless string offset when parsing "--pretty"
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -159,6 +159,7 @@ extern void get_commit_format(const char *arg, struct rev_info *); extern const char *format_subject(struct strbuf *sb, const char *msg, const char *line_separator); extern void userformat_find_requirements(const char *fmt, struct userformat_want *w); +extern int commit_format_is_empty(enum cmit_fmt); extern void format_commit_message(const struct commit *commit, const char *format, struct strbuf *sb, const struct pretty_print_context *context); |