Re: Cleaning up git user-interface warts
- From
Andreas Ericsson <ae@op5.se>
- Date
- Nov 15, 2006, 12:15 UTC
- Message-ID
- <455B04DE.1040107@op5.se>
- In-Reply-To
- <Pine.LNX.4.64.0611142048350.2591@xanadu.home>
Nicolas Pitre wrote:
[ axed a lot of stuff that I didn't fully grok ]
Show 9 quoted lines
> > This becomes formalized as: > > git_pull [<URL>] [<local_name>] > > If <URL> includes a branch name then <local_name> is a single branch > name. If <URL> doesn't include any branch name then <local_name> > becomes a local branch group name containing all branches in the remote > repository.
I would change that so "local_name" is always a branch group name, but branch group names can be used as refs. That is,
git pull startrek.com/kirk.git:master kirk
would always create the branch-head .git/refs/remote/kirk/master which for short can be referenced as just "kirk" (barring clashes ofc), so long as it only has one branch tracked.
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se