summaryrefslogtreecommitdiff
path: root/t/t3012-ls-files-dedup.sh
AgeCommit message (Collapse)AuthorFilesLines
2021-01-23ls-files.c: add --deduplicate optionLibravatar ZheNing Hu1-0/+66
During a merge conflict, the name of a file may appear multiple times in "git ls-files" output, once for each stage. If you use both `--delete` and `--modify` at the same time, the output may mention a deleted file twice. When none of the '-t', '-u', or '-s' options is in use, these duplicate entries do not add much value to the output. Introduce a new '--deduplicate' option to suppress them. Signed-off-by: ZheNing Hu <adlternative@gmail.com> [jc: extended doc and rewritten commit log] Signed-off-by: Junio C Hamano <gitster@pobox.com>