Re: [PATCH] Add function to checkout a branch in git.el

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2008-02-13 21:23:52 +0300, Sergei Organov wrote:

> Karl Hasselström <kha@xxxxxxxxxxx> writes:
>
> >   * if the user enters a name that's not the name of an existing
> >     branch, display a prompt like this
> >
> >       Creating new branch "foo". Where should it start?
> >
> >     Tab complete on existing tags and branches, but accept any
> >     committish. Create the new branch and switch to it.
>
> It still doesn't allow to detach HEAD at arbitrary tag/committish,
> as far as I can see.

It wouldn't be hard. Just try to interpret the string supplied by the
user as a committish: if successful, check it out; if not, create a
new branch by that name. Of course, this makes it impossible to create
a branch with the same name as an existing committish, but that's
probably OK.

> I believe the interface should be designed more carefully. Here are
> some thoughts/suggestions:

Yes, having different commands that do one job each and do it well
isn't a bad idea either. I like my idea more, but obviously whoever
writes the code gets to decide ...

-- 
Karl Hasselström, kha@xxxxxxxxxxx
      www.treskal.com/kalle
-
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux