File: refactoring

package info (click to toggle)
hkl 5.1.3-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 40,776 kB
  • sloc: ansic: 56,912; haskell: 5,879; python: 4,591; makefile: 1,137; cpp: 976; sh: 215; xml: 168; perl: 133; lisp: 80
file content (9 lines) | stat: -rwxr-xr-x 219 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
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