[maintainer-tools PATCH 1/3] dim: Autocreate tracking branch in checkout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tvrtko stumbled over this one.

Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx>
---
 dim | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dim b/dim
index 1fd0217588f6..98efba80d9a4 100755
--- a/dim
+++ b/dim
@@ -417,7 +417,11 @@ function dim_cd
 function dim_co
 {
 	dim_cd $1
-	git checkout $1
+	if ! git branch | grep $1 > /dev/null ; then
+		git checkout -t $DIM_DRM_INTEL_REMOTE/$1
+	else
+		git checkout $1
+	fi
 }
 
 function check_repo_clean
-- 
2.5.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux