Lines Matching +full:rev +full:- +full:parse
8 # with OP-TEE (for QEMU)
9 if [ -z "$CHECKPATCH" ]; then
10 CHECKPATCH=$(command -v checkpatch.pl)
12 if [ -z "$CHECKPATCH" ]; then
13 CHECKPATCH=$(find /usr/src/linux-headers* -name checkpatch.pl -print -quit)
15 if [ -z "$CHECKPATCH" ]; then
16 CHECKPATCH=$(find "$PWD/../linux" -name checkpatch.pl -print -quit)
25 cat <<-EOF
27 checkpatch.sh [--working]
30 checkpatch.sh --diff <COMMIT> <COMMIT>
31 checkpatch.sh --cached
32 checkpatch.sh --help
37 https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection
40 --working Check the working area [Default].
41 --cached Check the staging area.
42 --diff <commit1> <commit2> Check the diff between commit1 and commit2.
43 --help Print this help message.
64 checkpatch.sh HEAD~10-5 Check 5 commits moving forward in
74 op=${1:---working}
76 --cached)
80 --diff)
84 --working)
88 --help|-h)
93 read -r MAJOR MINOR < <(git --version | awk -F '[. ]' '{print $3, $4}')
98 # parse the argument into a git object or list of git objects
99 object="$(git rev-parse "${arg}")" || continue
101 if git cat-file -e "${object}" 2>/dev/null; then
105 commits="$(echo "${object}" | git rev-list --stdin)"