summaryrefslogtreecommitdiff
path: root/builtin/show-ref.c
diff options
context:
space:
mode:
authorLibravatar Matheus Tavares <matheus.bernardino@usp.br>2021-02-08 16:43:28 -0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-09 12:39:06 -0800
commit0c5d83b2484c027971b793c442d147979c7e1a04 (patch)
tree155254ee5db22a818e338212c2af5d51407a3275 /builtin/show-ref.c
parentGit 2.30.1 (diff)
downloadtgif-0c5d83b2484c027971b793c442d147979c7e1a04.tar.xz
grep: error out if --untracked is used with --cached
The options --untracked and --cached are not compatible, but if they are used together, grep just silently ignores --cached and searches the working tree. Error out, instead, to avoid any potential confusion. Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-ref.c')
0 files changed, 0 insertions, 0 deletions