From: Mike Hommey Date: Mon, 30 Mar 2015 23:35:52 GMT Subject: Re: Walking children commits? Message-ID: <20150330233552.GA22637@glandium.org> In-Reply-To: <20150330230209.GA20421@glandium.org> On Tue, Mar 31, 2015 at 08:02:09AM +0900, Mike Hommey wrote: > Hi, > > I am trying to get all the children commits of a set of commits. To do > that, I'm using this: > > git rev-list --topo-order --ancestry-path --boundary ^A ^B ... > > where A, B, and following are those commits I want the children of. From > the gitrevisions documentation, it seems that should get me what I want, > but if I build a dag manually (from the output of rev-list --parents) > and get all the children of those commits, I get more results than what > the command above returns (and that command also gives false positives). The false positives are actually boundaries other than A, B, etc. so I'd actually need to remove --boundary and add A, B to the result manually. That still leaves the missing results, though. Mike