builtin-commit: fix reflog message generation
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Thu, 8 Nov 2007 12:15:26 +0000 (12:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Nov 2007 01:05:02 +0000 (17:05 -0800)
commit741707b1e2261d522a92948ff7d7b897ff00e587
tree4261a781e5d4e16f284721b9aff0d570775fc26b
parente97c9ad96b60d51b0b3852aaaff146015d01cb62
builtin-commit: fix reflog message generation

Instead of strdup()ing, we can just reuse the buffer in which the
commit message is stored, and which is supposed to hold the reflog
message anyway.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c