summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee50af1)
raw | patch | inline | side by side (parent: ee50af1)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 16 Oct 2009 05:59:41 +0000 (22:59 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 19 Oct 2009 07:48:59 +0000 (00:48 -0700) |
The format template string was declared as "const void *" for some unknown
reason, even though it obviously is meant to be passed a string. Make it
"const char *".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reason, even though it obviously is meant to be passed a string. Make it
"const char *".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.h | patch | blob | history | |
pretty.c | patch | blob | history |
diff --git a/commit.h b/commit.h
index f4fc5c5589a3ae6f2b99e533c3dd0f3a7a7f418a..95f981a1a93989d89edb0c5b850fa86db2071b50 100644 (file)
--- a/commit.h
+++ b/commit.h
const char **encoding_p);
extern void get_commit_format(const char *arg, struct rev_info *);
extern void format_commit_message(const struct commit *commit,
- const void *format, struct strbuf *sb,
+ const char *format, struct strbuf *sb,
enum date_mode dmode);
extern void pretty_print_commit(enum cmit_fmt fmt, const struct commit*,
struct strbuf *,
diff --git a/pretty.c b/pretty.c
index f5983f8baa98b69338707b4220e64012ef4e5d11..587101f846b945d7de219f468699e75565a7e9c0 100644 (file)
--- a/pretty.c
+++ b/pretty.c
}
void format_commit_message(const struct commit *commit,
- const void *format, struct strbuf *sb,
+ const char *format, struct strbuf *sb,
enum date_mode dmode)
{
struct format_commit_context context;