aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-02 13:25:03 -0700
committerJunio C Hamano <gitster@pobox.com>2014-09-02 13:25:04 -0700
commit44ceb79f84b0f339147d2d44e4bb50cc472be03e (patch)
tree207c1f0e269f9d99602ae9043ad6a259428a9831 /commit.h
parentMerge branch 'ta/config-set' (diff)
parentpretty: make empty userformats truly empty (diff)
downloadgit-44ceb79f84b0f339147d2d44e4bb50cc472be03e.tar.gz
git-44ceb79f84b0f339147d2d44e4bb50cc472be03e.zip
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index a8cbf52f15..aa8c3ca50a 100644
--- a/commit.h
+++ b/commit.h
@@ -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);