All of lore.kernel.org
 help / color / mirror / Atom feed
* [maintainer-tools PATCH 1/3] dim: Autocreate tracking branch in checkout
@ 2015-10-21  7:48 Daniel Vetter
  2015-10-21  7:48 ` [maintainer-tools PATCH 2/3] drm-intel: Add link to dim manpage Daniel Vetter
  2015-10-21  7:48 ` [maintainer-tools PATCH 3/3] Update .gitignore Daniel Vetter
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Vetter @ 2015-10-21  7:48 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Daniel Vetter, Daniel Vetter

Tvrtko stumbled over this one.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
 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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-21  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21  7:48 [maintainer-tools PATCH 1/3] dim: Autocreate tracking branch in checkout Daniel Vetter
2015-10-21  7:48 ` [maintainer-tools PATCH 2/3] drm-intel: Add link to dim manpage Daniel Vetter
2015-10-21  8:16   ` Jani Nikula
2015-10-21  7:48 ` [maintainer-tools PATCH 3/3] Update .gitignore Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.