author | Junio C Hamano <junkio@cox.net> | |
Thu, 22 Feb 2007 08:28:49 +0000 (00:28 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 22 Feb 2007 08:31:51 +0000 (00:31 -0800) | ||
commit | 2b5f9a8c0cff511f2bb0833b1ee02645b79323f4 | |
tree | 7b9f4e8259e225995a59a805e1984248f153e43b | tree | snapshot |
parent | 437b1b20df4b356c9342dac8d38849f24ef44f27 | commit | diff |
git-status: do not be totally useless in a read-only repository.
This makes git-status work semi-decently in a read-only
repository. Earlier, the command simply died with "cannot lock
the index file" before giving any useful information to the
user.
Because index won't be updated in a read-only repository,
stat-dirty paths appear in the "Changed but not updated" list.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This makes git-status work semi-decently in a read-only
repository. Earlier, the command simply died with "cannot lock
the index file" before giving any useful information to the
user.
Because index won't be updated in a read-only repository,
stat-dirty paths appear in the "Changed but not updated" list.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh | diff | blob | history |