git/builtin
Jeff King b26cb7c777 receive-pack: simplify keep_arg computation
To generate "--keep=receive-pack $pid on $host", we write
progressively into a single buffer, which requires keeping
track of how much we've written so far. But since the result
is destined to go into our argv array, we can simply use
argv_array_pushf.

Unfortunately we still have to have a fixed-size buffer for
the gethostname() call, but at least it now doesn't involve
any extra size computation. And as a bonus, we drop an
sprintf and a strcpy call.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-10-05 11:08:05 -07:00
..
2014-07-16 11:10:11 -07:00
2015-10-05 11:08:04 -07:00
2015-08-24 13:09:02 -07:00
2015-01-14 09:32:04 -08:00
2015-08-31 15:39:10 -07:00
2015-10-05 11:07:04 -07:00
2015-08-25 13:11:21 -07:00
2015-10-05 11:08:05 -07:00
2015-01-14 09:32:04 -08:00
2015-08-31 15:39:05 -07:00
2015-07-13 14:02:02 -07:00
2015-08-03 11:01:10 -07:00
2015-01-14 09:32:04 -08:00
2015-08-31 15:39:03 -07:00