ls-files -h: show usage even with corrupt index
commitcbb3167ef8b73109ed5c5e54aa1915d9c50f83d5
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 22 Oct 2010 06:48:14 +0000 (22 01:48 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Oct 2010 18:04:53 +0000 (22 11:04 -0700)
tree6e2326d89c92982c0e3bd0ecfb609c5f1c9980e5
parent0c8151b6ff5b79e6638e4f8339d62b051998dc2f
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>
builtin/ls-files.c
t/t3004-ls-files-basic.sh [new file with mode: 0755]