| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
| Fri, 22 Oct 2010 06:45:47 +0000 (01:45 -0500) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Fri, 22 Oct 2010 18:04:52 +0000 (11:04 -0700) | ||
| commit | 5d3dd915e64ea42ba6bf7646937784f6ddc71422 | |
| tree | 62812efcb9a7052ca9151aa038dda376b702b0f4 | tree | snapshot |
| parent | cf9d52e4899219523359ad1542605395c8c86337 | commit | diff |
commit/status -h: show usage even with broken configuration
"git status" and "git commit" read .git/config and .gitmodules before
parsing options, but there is no reason to access a repository at all
when the caller just wanted to know what arguments are accepted.
[jn: rewrote the log message and added test]
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>
"git status" and "git commit" read .git/config and .gitmodules before
parsing options, but there is no reason to access a repository at all
when the caller just wanted to know what arguments are accepted.
[jn: rewrote the log message and added test]
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/commit.c | diff | blob | history | |
| t/t7508-status.sh | diff | blob | history |