projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge refs/heads/master from .
[git.git]
/
git-status-script
diff --git
a/git-status-script
b/git-status-script
index
1696f23
..
2b02954
100755
(executable)
--- a/
git-status-script
+++ b/
git-status-script
@@
-39,11
+39,23
@@
esac
git-update-cache --refresh >/dev/null 2>&1
git-update-cache --refresh >/dev/null 2>&1
-git-diff-cache -M --cached HEAD |
-sed 's/^://' |
-report "Updated but not checked in" "will commit"
+if test -f "$GIT_DIR/HEAD"
+then
+ git-diff-cache -M --cached HEAD |
+ sed 's/^://' |
+ report "Updated but not checked in" "will commit"
-committable="$?"
+ committable="$?"
+else
+ echo '#
+# Initial commit
+#'
+ git-ls-files |
+ sed 's/^/o o o o A /' |
+ report "Updated but not checked in" "will commit"
+
+ committable="$?"
+fi
git-diff-files |
sed 's/^://' |
git-diff-files |
sed 's/^://' |