[PATCH 2/2] dim: strip signatures out of the pull mail overviews

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed tags have the signature at the end. Strip them out when preparing
pull mail overviews.

Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dim b/dim
index 866a420d4ef6..fc16d114632f 100755
--- a/dim
+++ b/dim
@@ -1483,7 +1483,7 @@ function prep_pull_mail_overview
 			obj=$(git rev-parse $tag)
 			if [[ "$(git cat-file -t $obj)" == "tag" ]] ; then
 				echo $tag:
-				git cat-file -p $obj | tail -n+6
+				git cat-file -p $obj | tail -n+6 | sed -n '/^-----BEGIN PGP SIGNATURE-----$/q;p'
 			fi
 		done
 	fi
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux