repo.or.cz
/
msysgit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
full installer's initialize.sh: try to initialize 'master' correctly
[msysgit.git]
/
share
/
msysGit
/
post-install.sh
blob
7757b5ac05201600ee92c4fb7860d099edcd514a
1
#!/bin/sh
2
3
test
$#
-lt
2
&& {
4
echo
"Usage:
$0
<GIT_INDEX_FILE> <MESSAGE...>"
5
exit
1
6
}
7
8
# bashism
9
set -o
pipefail
10
11
cd
/ &&
12
(
export
GIT_INDEX_FILE
=
$1
&&
13
git diff-files
--name-only -z
&&
14
git ls-files
--exclude-standard --others -z
)
|
15
git update-index
-z --add --remove --stdin
&&
16
shift
&&
17
git commit
-s -m
"$*"
18