On 3/18/06, Junio C Hamano <junkio@cox.net> wrote: > Marco Costalba <mcostalba@gmail.com> writes: > > > Is it possible to get branch name from a revision sha? > > Something like > > > > $ git branch b14e2494b8a70737066f4ade4df1b5559e81b44b > > todo > > That is in general impossible. > > > > I need this to correctly annotate files not in HEAD > > tree. Currently qgit runs git-rev-list --header --topo-order > > --parents --remove-empty HEAD -- <path> > > > > to get a file history. But this fails if <path> is not found > > in HEAD. The right command to run in our case should be: > > git-rev-list --header --topo-order --parents --remove-empty > > todo -- <path> > > ... I wonder why you care. Wouldn't this work just as well? > > $ git rev-list --header --topo-order --parents --remove-empty \ > --all -- <path> > Yessss!!! Thanks for the fix. I missed that. Marco - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Sat Mar 18 18:36:00 2006
This archive was generated by hypermail 2.1.8 : 2006-03-18 18:36:13 EST