• Junio C Hamano's avatar
    setup_revisions(): take pathspec from command line and --stdin correctly · 4da5af31
    Junio C Hamano authored
    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: default avatarJunio C Hamano <gitster@pobox.com>
t6017-rev-list-stdin.sh 1.28 KB