summaryrefslogtreecommitdiff
path: root/scripts/refactoring
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/refactoring')
-rwxr-xr-xscripts/refactoring9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/refactoring b/scripts/refactoring
new file mode 100755
index 0000000..5e7e8ee
--- /dev/null
+++ b/scripts/refactoring
@@ -0,0 +1,9 @@
+# use a cocci spatch for the refactoring
+
+SP_FILE=$1
+shift
+spatch -in-place -sp_file $SP_FILE -I .. $*
+echo $1, $2
+echo "refactor using $SP_FILE" > ../.git/GITGUI_BCK
+git add $SP_FILE
+cat $SP_FILE >> ../.git/GITGUI_BCK