repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make "parse_commit()" be a lot more careful
[git.git]
/
git-rename-script
blob
3952382dbce6b27311680cf255dc0ffb6828c011
1
#!/bin/sh
2
3
. git-sh-setup-script || die
"Not a git archive"
4
5
[
-f
"
$1
"
]
||
[
-h
"
$1
"
]
|| die
"git rename: bad source"
6
[
-e
"
$2
"
] &&
die
"git rename: destination already exists"
7
mv
--
"
$1
"
"
$2
"
&&
git-update-cache
--add --remove --
"
$1
"
"
$2
"