From: Santi Béjar Date: Fri, 09 Apr 2010 23:33:01 GMT Subject: Re: potential improvement to 'git log' with a range Message-ID: In-Reply-To: On Sat, Apr 10, 2010 at 1:24 AM, Aghiles wrote: > If I type: > >    git log FETCH_HEAD~4..HEAD > > I get something. But if I type: > >    git log HEAD..FETCH_HEAD~4 > > I get nothing. Is there a good reason for that ? > Yes. $ git log -h usage: git log [] [..] [[--] ...] So and are not equivalent. It list commits in but not in . In your case HEAD has commits not in FETCH_HEAD~4 (your first command) while FETCH_HEAD~4 does not have commits not in HEAD. So HEAD is a descendent of FETCH_HEAD~4. Hope I didn't misunderstood your question. HTH, Santi