Re: [PATCH v2] git-clone: Add option --branch to override initial branch
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Mar 9, 2009, 16:01 UTC
- Message-ID
- <94a0d4530903090901o6e8c2a40k676387f90ee461b3@mail.gmail.com>
- In-Reply-To
- <loom.20090309T143413-334@post.gmane.org>
On Mon, Mar 9, 2009 at 4:39 PM, Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> wrote:
Show 25 quoted lines
> Junio C Hamano <gitster <at> pobox.com> writes: > >> >> Tor Arne Vestbø <torarnv <at> gmail.com> writes: >> >> > The options --branch and -b allow the user to override the initial >> > branch created and checked out by git-clone (normally this is the >> > active branch of the remote repository). >> > >> > If the selected branch is not found the operation aborts. >> > >> > Signed-off-by: Tor Arne Vestbø <torarnv <at> gmail.com> >> >> The semantics and desirability of the new feature have been already >> discussed, and I am not convinced that it is necessary, in the sense that >> I do not think I likely ever use this myself, but I am just one of git >> users so that is not a strong basis for rejection. > > I wrote a comment about the --branch approach a couple of days ago, dunno why > but this thread never reached my inbox (replying via gmame web interface). > > http://thread.gmane.org/gmane.comp.version-control.git/112527 > > As I wrote in my post a friend of mine, new to git, was looking for the > possibility of cloning a repo and automatically checkout a specific branch.
Yeah, I also would like this option... one-liner for people that don't know git at all.
me: you want my code? just run this command.
-- Felipe Contreras