[contrib] create an UB Transformation
[hkl.git] / scripts / refactoring
blob5e7e8ee64e179c1c86944ceb9b21989a25ed9f67
1 # use a cocci spatch for the refactoring
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