Skip to contentSkip to conversation

dim: really make the branch argument for dim retip optional

PATCH New Daniel Vetter 1 participant 1 message Mar 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dim: really make the branch argument for dim retip optional

Some didn't work, at least here.

---
 dim | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
dim +7 -1
index 821147510dc5..91e75299f56d 100755
@@ -380,7 +380,13 @@ function dim_retip
 	local branch upstream remote
 
 	branch="$1"
-	shift
+
+	if [ -n "$branch" ] ; then
+		shift
+	else
+		branch=$(git symbolic-ref --short HEAD)
+	fi
+
 	remote=$(url_to_remote $drm_tip_ssh)
 	upstream=$(git_find_tip "$branch")
 
Signature · 6 lines
2.11.0

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