From: Ville Syrjälä <[email protected]>
Add the "add-link" command so that you can add the Link: tag to
patches that failed to apply directly.
v2: Drop the aliases
Remove the temp file
Clean up locals
Use echoerr for error prints
Cc: Jani Nikula <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
---
dim | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/dim b/dim
index 8d76953d1746..f737b2878a42 100755
--- a/dim
+++ b/dim
@@ -664,6 +664,45 @@ function dim_apply_branch
eval $DRY $DIM_POST_APPLY_ACTION
}
+function dim_add_link
+{
+ local branch file message_id
+
+ branch=$1
+ shift
+ file=$(mktemp)
+
+ assert_branch $branch
+ assert_repo_clean
+
+ cat > $file
+
+ message_id=$(message_get_id $file)
+
+ rm -f $file
+
+ if [ -n $message_id ]; then
+ dim_commit_add_tag "Link:
http://patchwork.freedesktop.org/patch/msgid/$message_id"
+ else
+ echoerr "No message-id found in the patch file."
+ fi
+}
+
+function dim_add_link_queued
+{
+ dim_add_link drm-intel-next-queued "$@"
+}
+
+function dim_add_link_fixes
+{
+ dim_add_link drm-intel-fixes "$@"
+}
+
+function dim_add_link_next_fixes
+{
+ dim_add_link drm-intel-next-fixes "$@"
+}
+
dim_alias_aq=apply-queued
function dim_apply_queued
{
--
2.10.2
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx