diff options
author | Jared Hance <jaredhance@gmail.com> | 2010-07-31 08:54:55 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-02 11:53:18 -0700 |
commit | 8a883b0260ba7f8d6e4c025ae3c32b454e80ade5 (patch) | |
tree | 2c0697d95f057cdb3903053eba8f1dd67876cc2d /advice.h | |
parent | 61bf126ecb24977b883079942b71ff96174c19fb (diff) | |
download | git-8a883b0260ba7f8d6e4c025ae3c32b454e80ade5.tar.gz git-8a883b0260ba7f8d6e4c025ae3c32b454e80ade5.tar.xz |
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>
Diffstat (limited to 'advice.h')
0 files changed, 0 insertions, 0 deletions