summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorTimo Hirvonen <tihirvon@gmail.com>2006-06-28 12:04:39 +0300
committerJunio C Hamano <junkio@cox.net>2006-06-28 03:24:37 -0700
commit554fe20d805693d962bd41647c5dc075cf7f5261 (patch)
tree09cba2467ab73d87d6567ee472b74cc27632ad6e /commit.c
parent66eb64cba64a26dbf2b1d4e319d6514696154fee (diff)
downloadgit-554fe20d805693d962bd41647c5dc075cf7f5261.tar.gz
Make some strings const
Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 946615d2ad..0327df1232 100644
--- a/commit.c
+++ b/commit.c
@@ -543,7 +543,7 @@ static int add_merge_info(enum cmit_fmt fmt, char *buf, const struct commit *com
const char *hex = abbrev
? find_unique_abbrev(p->object.sha1, abbrev)
: sha1_to_hex(p->object.sha1);
- char *dots = (abbrev && strlen(hex) != 40) ? "..." : "";
+ const char *dots = (abbrev && strlen(hex) != 40) ? "..." : "";
parent = parent->next;
offset += sprintf(buf + offset, " %s%s", hex, dots);