From: Kelly F. Hickel Date: Thu, 12 Mar 2009 19:38:38 GMT Subject: RE: newb: Given a commit id, find which branches have it as an ancestor Message-ID: <63BEA5E623E09F4D92233FB12A9F794302E0F9BA@emailmn.mqsoftware.com> In-Reply-To: <63BEA5E623E09F4D92233FB12A9F794302E0F9B2@emailmn.mqsoftware.com> > From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On > Behalf Of Johannes Sixt > Sent: Thursday, March 12, 2009 10:38 AM > To: Kelly F. Hickel > $ git branch -a --contains the-sha1 > > -- Hannes > Thanks, that looks like a really useful command. Unfortunately, in this case it didn't print anything out (neither did "git branch -r -a sha1"). What I'm beginning to suspect is that all the commits that should have gone to master went to some unnamed branch. Is that reasonable/possible/likely? This commit has a full ancestry, but doesn't appear to be on any branch. In the above question there's an assumption that if a branch exists without a name, then git branch -a --contains wouldn't print anything out, is that correct? Thanks, Kelly