summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5fb41e8)
raw | patch | inline | side by side (parent: 5fb41e8)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Mon, 10 Oct 2005 20:58:52 +0000 (13:58 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 10 Oct 2005 20:58:52 +0000 (13:58 -0700) |
Not all sed understands '\t' and consequently cuts off every
file name at the first "t" (or backslash...).
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
file name at the first "t" (or backslash...).
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-status.sh | patch | blob | history |
diff --git a/git-status.sh b/git-status.sh
index 6e2783a7b4df7ec77aa4d472e84db323f65ecc83..fbdd377539eea2c4521a2df2d37ff06b80567664 100755 (executable)
--- a/git-status.sh
+++ b/git-status.sh
sed -e '
s/^://
h
- s/^[^\t]*//
+ s/^[^ ]*//
s/ /\\ /g
x
- s/\t.*$//
+ s/ .*$//
G
s/\n/ /' |
report "Updated but not checked in" "will commit"
sed -e '
s/^://
h
- s/^[^\t]*//
+ s/^[^ ]*//
s/ /\\ /g
x
- s/\t.*$//
+ s/ .*$//
G
s/\n/ /' |
report "Changed but not updated" "use git-update-index to mark for commit"