On Wed, Dec 16, 2009 at 3:16 AM, <bd@xxxxxxxxx> wrote: > imagine this: > > --A--*--B (new) > / > *--X--*--Y (master) > > Now I'd like to list only log messages for A..B (X..B would be okay too). > > I know of > > git log master..new > > however then I need to remember that I branched new of master, and to be honest, > sometimes I forget. > > So how do I: > > git please-tell-me-the-branch-I-started-this-branch-from new In the above example, you technically did not create 'new' off of 'master', you created new starting at X. You may think of it in terms of branching off of 'master', but git branch new master resolves 'master' to the commit it points at and creates 'new' pointing at that commit. That's all that is recorded. But I believe the info you are really interested in is where new started, rather than the fact that it branched off master. Is that correct? If so, just use new@{30.years.ago} (or any other sufficiently long period of time): git log new@{30.years.ago}..new (You'll get a warning that 'new' hasn't existed for 30 years but it doesn't hurt anything) Hope that helps, Elijah -- 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