repo.or.cz
/
msysgit
/
kirr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
astextplain: Try to workaround textconv vs symlinks problem on win32
[msysgit/kirr.git]
/
share
/
msysGit
/
post-install.sh
blob
7110a8eda2b09b0dfcaadb780e39251d23d5e42e
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 --ignore-submodules -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