diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-10-22 01:42:58 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-22 11:02:59 -0700 |
commit | 1dacfbcf13693dad508095735a95bc4b12382c57 (patch) | |
tree | 6507bbf6dc64070b46392c94019ee1a42684af14 /walker.c | |
parent | Introduce sane_unset and use it to ensure proper && chaining (diff) | |
download | tgif-1dacfbcf13693dad508095735a95bc4b12382c57.tar.xz |
branch -h: show usage even in an invalid repository
There is no need for "git branch -h" to try to access a repository.
In the spirit of v1.6.6-rc0~34^2~3 (Let 'git <command> -h' show usage
without a git dir, 2009-11-09). This brings git one step closer to
passing the following (automatically verifiable) test:
Before any repository access (aside from git_config()), a
function from the setup_git_directory_* family has been run
and thus one step closer to being able to use an automatic repository
access checker.
[jn: simplified; new commit message, 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>
Diffstat (limited to 'walker.c')
0 files changed, 0 insertions, 0 deletions