diff options
author | Jeff King <peff@peff.net> | 2012-05-22 03:09:51 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-22 20:07:52 +0400 |
commit | e21ab1340a1a22f017e9c3e4fc0deb9f4de36917 (patch) | |
tree | 79aa205abb447741af4347d2da97db7b9b2153f4 /cache.h | |
parent | 5cb2194aba3c6828cec3e4ec75d78f49165e2eab (diff) |
fmt-merge-msg: don't use static buffer in record_person
The record_person function just parses out the "name" field
of the person line in a commit and adds it to a string_list.
The only reason we need an extra buffer is that the
string_list functions require a NUL-terminated string.
Instead of the static buffer, we can just allocate a
temporary NUL-terminated copy. In addition to removing a
useless limit, this removes the only user of MAX_GITNAME
outside of ident.c.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
0 files changed, 0 insertions, 0 deletions