summaryrefslogtreecommitdiff
path: root/reachable.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-01-04 10:04:04 -0800
committerJunio C Hamano <gitster@pobox.com>2017-01-08 18:04:17 -0800
commit5d8f084a5d63501270d6cc0ff2ce04358ca704d6 (patch)
treef16b51bc7ab2cbea23146546733d1bec0a78d9a1 /reachable.c
parent2aee5849c9b3698b65d74bc354f3cee7213add35 (diff)
downloadgit-5d8f084a5d63501270d6cc0ff2ce04358ca704d6.tar.gz
pathspec: simpler logic to prefix original pathspec elements
The logic used to prefix an original pathspec element with 'prefix' magic is more general purpose and can be used for more than just short magic. Remove the extra code paths and rename 'prefix_short_magic' to 'prefix_magic' to better indicate that it can be used in more general situations. Also, slightly change the logic which decides when to prefix the original element in order to prevent a pathspec of "." from getting converted to "" (empty string). Signed-off-by: Brandon Williams <bmwill@google.com> Reviewed-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reachable.c')
0 files changed, 0 insertions, 0 deletions