Re: Feature request: "author branch" in commit object
- From
Fredrik Gustafsson <iveqy@iveqy.com>
- Date
- Jul 2, 2013, 19:49 UTC
- Message-ID
- <20130702194909.GA24661@paksenarrion.iveqy.com>
- In-Reply-To
- <CADL+T9YGtvFrzStxJW64OJEV6H0BroMbkVCJdsDwWDaUWd91zQ@mail.gmail.com>
On Tue, Jul 02, 2013 at 12:37:13PM -0700, Ed Hutchins wrote:
Show 6 quoted lines
> I realize that branch names are ephemeral repo-specific things, but it > would be really useful to be able to determine what branch a commit > was authored from (as a hint to ancestry graph layout tools, for > example). Is there any way to do this currently, is it planned, or > would it be deemed useful enough to be worth adding to each commit > object?
Let's see if I understand you. You want to (for each commit) to be able to tell the branch-name the commit had at the creation time?
Not all commits have branches (however, loose commits is usually not wanted). Many commits are part of many branches.
A branch is not a collection of commits but a pointer to a commit (which has parents).
-- Med vänliga hälsningar Fredrik Gustafsson tel: 0733-608274 e-post: iveqy@iveqy.com