]> git.ipfire.org Git - thirdparty/git.git/commit - ident.c
ident: use a dynamic strbuf in fmt_ident
authorJeff King <peff@peff.net>
Mon, 21 May 2012 23:10:26 +0000 (19:10 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 May 2012 16:08:48 +0000 (09:08 -0700)
commitc96f0c8d0a9f1eeabb2ea49cb7ede954a64bd540
treec3b2800a889480091ff46b141ba11753d3e9f954
parentf8254d321cc42a6d47abf79b0f93d16e28432df3
ident: use a dynamic strbuf in fmt_ident

Now that we accept arbitrary-sized names and email
addresses, the only remaining limit is in the actual
formatting of the names into a buffer. The current limit is
1000 characters, which is not likely to be reached, but
using a strbuf is one less error condition we have to worry
about.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ident.c