[Intel-gfx] [PATCH 2/2] dim: really make the branch argument for dim retip optional
Daniel Vetter
daniel.vetter at ffwll.ch
Tue Mar 21 12:58:24 UTC 2017
Some didn't work, at least here.
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
dim | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dim b/dim
index e0c1909653b6..d7dcea625702 100755
--- a/dim
+++ b/dim
@@ -388,7 +388,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")
--
2.11.0
More information about the Intel-gfx
mailing list