>From cd4366ed4e3f765c00310c35c0eabeccf433acdb Mon Sep 17 00:00:00 2001 From: Andy Parkins <andyparkins@xxxxxxxxx> Date: Wed, 25 Oct 2006 15:47:19 +0100 Subject: [PATCH] Use "up/" prefix for all the upstream branches To: git@xxxxxxxxxxxxxxx X-TUID: aba1ff8a0c61615e X-UID: 126 X-Length: 1359 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610251547.19208.andyparkins@xxxxxxxxx> To easily differentiate the read-only upstream branches, from normal branches, default to cloning them with the prefix "up/" added to their branch names. This also abandons the idea of an "origin" branch which is now simply "up/master" and hence removes the special treatment that master was getting. (cherry picked from 33d89375652222c41fbf225f1e1c3bfb38b755b2 commit) Signed-off-by: Andy Parkins <andyparkins@xxxxxxxxx> --- I'm sure this will be an unwanted patch. However, I really do think it's important to highlight these upstream branches in some way. I realise renaming "origin" is probably not going to fly, but perhaps it would be okay to have at least the non-origin branches prefixed? git-clone.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/git-clone.sh b/git-clone.sh index 3f006d1..ebd93da 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -185,7 +185,7 @@ fi if test -z "$origin" then - origin=origin + origin=up/master fi # Turn the source into an absolute path if @@ -389,7 +389,7 @@ Pull: refs/heads/$head_points_at:$origin then continue fi - echo "Pull: refs/heads/${name}:$remote_top/${name}" + echo "Pull: refs/heads/${name}:$remote_top/up/${name}" done >>"$GIT_DIR/remotes/$origin" && case "$use_separate_remote" in t) -- 1.4.2.3 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html