[PATCH] dim: allow to add link to the current HEAD
Lucas De Marchi
lucas.demarchi at intel.com
Fri Nov 15 23:54:21 UTC 2019
Add method add-link-head that applies the link to head without any
additional check. This is useful either to reduce typing or to add a
link while in the middle of an interactive rebase.
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
dim | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/dim b/dim
index 1c2da80..3aad25f 100755
--- a/dim
+++ b/dim
@@ -1255,17 +1255,11 @@ function dim_rebase
fi
}
-function dim_add_link
+function dim_add_link_head
{
- local branch file message_id
+ local file message_id
- branch=${1:?$usage}
- shift
file=$(mktemp)
-
- assert_branch $branch
- assert_repo_clean
-
cat > $file
message_id=$(message_get_id $file)
@@ -1279,6 +1273,19 @@ function dim_add_link
fi
}
+function dim_add_link
+{
+ local branch file message_id
+
+ branch=${1:?$usage}
+ shift
+
+ assert_branch $branch
+ assert_repo_clean
+
+ dim_add_link_head
+}
+
function dim_add_link_queued
{
dim_add_link drm-intel-next-queued "$@"
--
2.24.0
More information about the dim-tools
mailing list