summaryrefslogtreecommitdiff
path: root/match-trees.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-05-11 14:01:19 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-11 14:43:56 -0700
commit4da5af3151301d25a25d60a90b8275eaca13de86 (patch)
treea7973fe80bb83266276853456cc84b0a08667578 /match-trees.c
parentGit 1.6.6 (diff)
downloadtgif-4da5af3151301d25a25d60a90b8275eaca13de86.tar.xz
setup_revisions(): take pathspec from command line and --stdin correctly
When the command line has "--" disambiguator, we take the remainder of argv[] as "prune_data", but when --stdin is given at the same time, we need to append to the existing prune_data and end up attempting to realloc(3) it. That would not work. Fix it by consistently using append_prune_data() throughout the input processing. Also avoid counting the number of existing paths in the function over and over again. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'match-trees.c')
0 files changed, 0 insertions, 0 deletions