Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
format_commit_message(): fix function signature
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>
commit.h
patch
|
blob
|
history
pretty.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ee50af1
)
diff --git
a/commit.h
b/commit.h
index f4fc5c5589a3ae6f2b99e533c3dd0f3a7a7f418a..95f981a1a93989d89edb0c5b850fa86db2071b50 100644
(file)
--- a/
commit.h
+++ b/
commit.h
@@
-70,7
+70,7
@@
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 format_commit_message(const struct commit *commit,
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 *,
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
@@
-740,7
+740,7
@@
static size_t format_commit_item(struct strbuf *sb, const char *placeholder,
}
void format_commit_message(const struct commit *commit,
}
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;
enum date_mode dmode)
{
struct format_commit_context context;