From: Nguyễn Thái Ngọc Duy Date: Fri, 22 Oct 2010 06:51:00 +0000 (-0500) Subject: update-index -h: show usage even with corrupt index X-Git-Tag: v1.7.4-rc0~65^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9c7c27eeab73b4c90cf36c6aa06ba6b8b9777629?hp=9c7c27eeab73b4c90cf36c6aa06ba6b8b9777629 update-index -h: show usage even with corrupt index When trying to fix up a corrupt repository, one might prefer that "update-index -h" print an accurate usage message and exit rather than reading the repository and complaining about the corruption. [jn: with rewritten log message and tests] Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano ---