This website requires JavaScript.
Explore
Help
Sign In
interesting
/
riscv-openocd
mirror of
https://github.com/riscv/riscv-openocd.git
Watch
1
Star
0
Fork
You've already forked riscv-openocd
0
Code
Issues
Projects
Releases
Wiki
Activity
buf_sget
riscv-openocd
/
tools
/
checkpatch.sh
6 lines
99 B
Bash
Raw
Permalink
Normal View
History
Unescape
Escape
tools: add checkpatch script execute from openocd root dir after commiting change but before pushing to gerrit. tools/checkpatch.sh This is the same script used by the jenkins build server to validate a change. Change-Id: Ib40d44b160e1c50a5e47ab55fc48a554381ea763 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/167 Tested-by: jenkins
2011-11-03 18:33:37 -05:00
#!/bin/sh
#
make checkpatch.sh take an optional 'since' refspec Change-Id: I793778037db08bd5462f61b9bcafd484708cc1b6 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/250 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2011-12-01 14:25:43 -06:00
since
=
${
1
:-
HEAD
^
}
tools/checkpatch.sh: remove flag --no-tree Commit c5d89883165e02ea4f318e3cb0ba40d1fb6f04d1 ("checkpatch.pl: check for openocd tree, not for kernel tree") has already fixed the check for OpenOCD tree, thus we do not need to skip it in the shell wrapper. Remove flag --no-tree from the shell wrapper. Change-Id: I8be497258624d89bde7742fee141a8f56bf9188e Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5110 Tested-by: jenkins
2019-04-10 05:46:54 -05:00
git format-patch -M --stdout
$since
|
tools/scripts/checkpatch.pl -