Re: [RFC] Introduce .git/BRANCH to point to the current branch

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

 



Salikh Zakirov <salikh@xxxxxxxxx> writes:

> This combination leads to the confusing user experience
> if the branch changes independently of the working directory.
> This can happen in following cases:

There's another thing that your proposal could change: navigating back
in history without loosing track of the branch you're on.

Currently, I can do:

# Oh, what did this look like two commits ago?
$ git checkout HEAD^^
# Ah, OK, let's go back to the tip
$ git checkout branch-name
               ^^^^^^^^^^^
But I have to remember and re-type the branch name.

I can imagine (not tested with your patch) doing just:

$ git checkout HEAD^^
$ git checkout BRANCH

(that's one point in favor of your change, but I'm not familiar enough
with git's internal to say whether this is sufficient to justify the
change).

-- 
Matthieu
-
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