It's not perfect or exactly the same, but prefer fewer lines of special
casing anyway.

Signed-off-by: Jani Nikula <[email protected]>
---
 dim | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/dim b/dim
index bfa6ef010806..866a420d4ef6 100755
--- a/dim
+++ b/dim
@@ -1615,12 +1615,8 @@ function dim_update_next_continue
                The following changes tagged $tag_testing:
 
                HERE
-       obj=$(git rev-parse $tag)
-       if [[ "$(git cat-file -t $obj)" == "tag" ]] ; then
-               git cat-file -p $obj | tail -n+6 >> $req_file
-       else
-               echo "*** CHANGELOG OVERVIEW HERE ***" >> $req_file
-       fi
+
+       prep_pull_mail_overview "$tag" >> $req_file
        prep_pull_mail_signature >> $req_file
 
        $DRY $DIM_MUA -s "Updated drm-intel-testing" \
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to