repo.or.cz
/
hkl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[contrib] add units in the haskell code
[hkl.git]
/
scripts
/
refactoring
blob
5e7e8ee64e179c1c86944ceb9b21989a25ed9f67
1
# use a cocci spatch for the refactoring
2
3
SP_FILE=$1
4
shift
5
spatch -in-place -sp_file $SP_FILE -I .. $*
6
echo $1, $2
7
echo "refactor using $SP_FILE" > ../.git/GITGUI_BCK
8
git add $SP_FILE
9
cat $SP_FILE >> ../.git/GITGUI_BCK