git/list[1] front-page[2] threads[3] people[4] search[5] about
 

(unknown)

From
Aandyparkins@gmail.com <andyparkins@gmail.com>
Date
Oct 25, 2006, 14:47 UTC
Message-ID
<E1Gck2K-0003H4-00@dvr.360vision.com>
From cd4366ed4e3f765c00310c35c0eabeccf433acdb Mon Sep 17 00:00:00 2001
From: Andy Parkins <andyparkins@gmail.com>
Date: Wed, 25 Oct 2006 15:47:19 +0100
Subject: [PATCH] Use "up/" prefix for all the upstream branches
To: git@vger.kernel.org
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@gmail.com>
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@gmail.com>
---
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
Next: Jakub Narebski
Message 1 of 14 in “(unknown)”
  1. andyparkins@gmail.comOct 25, 2006
  2. Jakub NarebskiOct 25, 2006
  3. Andy ParkinsOct 25, 2006
  4. Karl HasselströmOct 25, 2006
  5. Junio C HamanoOct 25, 2006
  6. Andy ParkinsOct 25, 2006
  7. Junio C HamanoOct 25, 2006
  8. Junio C HamanoOct 25, 2006
  9. Andy ParkinsOct 26, 2006
  10. Documentation: clarify refname disambiguation rules.Junio C Hamano, Oct 26, 2006
  11. Jakub NarebskiOct 26, 2006
  12. Josef WeidendorferOct 26, 2006
  13. Linus TorvaldsOct 26, 2006
  14. Shawn PearceOct 25, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.