[Intel-gfx] [dim PATCH 5/7] dim: make dim checkpatch subcommand return exit codes
Jani Nikula
jani.nikula at intel.com
Thu Mar 23 10:06:20 UTC 2017
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
dim | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dim b/dim
index c282782b429d..e23617c8907c 100755
--- a/dim
+++ b/dim
@@ -1179,13 +1179,17 @@ dim_alias_check_patch=checkpatch
dim_alias_cp=checkpatch
function dim_checkpatch
{
- local range
+ local range rv
range=$(rangeish "$1")
for commit in $(git rev-list --reverse $range); do
- checkpatch_commit $commit || true
+ if ! checkpatch_commit $commit; then
+ rv=1
+ fi
done
+
+ return $rv
}
function dim_sparse
--
2.1.4
More information about the Intel-gfx
mailing list