author | Matthias Lederhofer <matled@gmx.net> | |
Sun, 3 Jun 2007 14:48:16 +0000 (16:48 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Jun 2007 23:07:53 +0000 (16:07 -0700) | ||
commit | 7ae3df8c0aa3b7337ae9ac7b6184ac05985bf996 | |
tree | 7a0a38202a5dec2f1e509f624eb86b5979f63e84 | tree | snapshot |
parent | 892c41b98ae2e6baf3aa13901cb10db9ac67d2f3 | commit | diff |
Use new semantics of is_bare/inside_git_dir/inside_work_tree
Up to now to check for a working tree this was used:
!is_bare && !inside_git_dir
(the check for bare is redundant because is_inside_git_dir
returned already 1 for bare repositories).
Now the check is:
inside_work_tree && !inside_git_dir
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Up to now to check for a working tree this was used:
!is_bare && !inside_git_dir
(the check for bare is redundant because is_inside_git_dir
returned already 1 for bare repositories).
Now the check is:
inside_work_tree && !inside_git_dir
Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-ls-files.c | diff | blob | history | |
git-sh-setup.sh | diff | blob | history | |
git-svn.perl | diff | blob | history | |
git.c | diff | blob | history | |
setup.c | diff | blob | history |