author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Fri, 22 Oct 2010 06:48:14 +0000 (01:48 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 22 Oct 2010 18:04:53 +0000 (11:04 -0700) | ||
commit | cbb3167ef8b73109ed5c5e54aa1915d9c50f83d5 | |
tree | 6e2326d89c92982c0e3bd0ecfb609c5f1c9980e5 | tree | snapshot |
parent | 0c8151b6ff5b79e6638e4f8339d62b051998dc2f | commit | diff |
ls-files -h: show usage even with corrupt index
Part of a campaign to avoid git <command> -h being distracted by
access to the repository. A caller hoping to use "git ls-files"
with an alternate index as part of a repair operation may well use
"git ls-files -h" to show usage while planning it out.
[jn: with rewritten log message and tests]
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Part of a campaign to avoid git <command> -h being distracted by
access to the repository. A caller hoping to use "git ls-files"
with an alternate index as part of a repair operation may well use
"git ls-files -h" to show usage while planning it out.
[jn: with rewritten log message and tests]
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c | diff | blob | history | |
t/t3004-ls-files-basic.sh | [new file with mode: 0755] | blob |