builtin/push.c: remove useless temporary variable
authorJared Hance <jaredhance@gmail.com>
Sat, 31 Jul 2010 12:54:55 +0000 (08:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2010 18:53:18 +0000 (11:53 -0700)
commit8a883b0260ba7f8d6e4c025ae3c32b454e80ade5
tree2c0697d95f057cdb3903053eba8f1dd67876cc2d
parent61bf126ecb24977b883079942b71ff96174c19fb
builtin/push.c: remove useless temporary variable

Creating a variable nr here to use throughout the function only to change
refspec_nr to nr at the end, having not used refspec_nr the entire time,
is rather pointless. Instead, simply increment refspec_nr.

While at it, use ALLOC_GROW() instead of xrealloc().

Signed-off-by: Jared Hance <jaredhance@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/push.c