diff options
author | Victoria Dye <vdye@github.com> | 2022-01-11 18:04:59 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-13 13:49:44 -0800 |
commit | 1624333ec1486378c44ce38e4f8ae9d02c07d15a (patch) | |
tree | 1c7fd4f92c99a74cb92b2148f2777f05b20522d3 /compat/winansi.c | |
parent | reset: fix validation in sparse index test (diff) | |
download | tgif-1624333ec1486378c44ce38e4f8ae9d02c07d15a.tar.xz |
reset: reorder wildcard pathspec conditions
Rearrange conditions in method determining whether index expansion is
necessary when a pathspec is specified for `git reset`, placing less
expensive condition first. Additionally, add details & examples to related
code comments to help with readability.
Helped-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Victoria Dye <vdye@github.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/winansi.c')
0 files changed, 0 insertions, 0 deletions