From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Neal Groothuis" Subject: Re: Finding all commits which modify a file Date: Tue, 24 Jan 2012 11:34:44 -0500 (EST) Message-ID: <52932.38.96.167.131.1327422884.squirrel@mail.lo-cal.org> References: <46043.208.70.151.129.1327095331.squirrel@mail.lo-cal.org> <4F1B4764.3010501@gmail.com> <41090.38.96.167.131.1327335283.squirrel@mail.lo-cal.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org To: Santi =?iso-8859-1?Q?B=E9jar?= X-From: git-owner@vger.kernel.org Tue Jan 24 17:34:57 2012 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RpjKi-0006K7-Gj for gcvg-git-2@lo.gmane.org; Tue, 24 Jan 2012 17:34:56 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755517Ab2AXQeq convert rfc822-to-quoted-printable (ORCPT ); Tue, 24 Jan 2012 11:34:46 -0500 Received: from dharma.lo-cal.org ([208.70.151.129]:37467 "EHLO dharma.lo-cal.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755186Ab2AXQen (ORCPT ); Tue, 24 Jan 2012 11:34:43 -0500 Received: from mail.lo-cal.org (localhost [127.0.0.1]) by dharma.lo-cal.org (Postfix) with ESMTP id 26E3612BA9C; Tue, 24 Jan 2012 10:34:43 -0600 (CST) Received: from 38.96.167.131 (SquirrelMail authenticated user ngroot) by mail.lo-cal.org with HTTP; Tue, 24 Jan 2012 11:34:44 -0500 (EST) In-Reply-To: User-Agent: SquirrelMail/1.4.13 X-Priority: 3 (Normal) Importance: Normal Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: > On Mon, Jan 23, 2012 at 5:14 PM, Neal Groothuis w= rote: >>> On 1/20/2012 3:35 PM, Neal Groothuis wrote: >>>> I'm trying to find /all/ commits that change a file in the >>>> repository...and its proving to be trickier than I thought. :-) >> >> On 1/21/2012 6:16 PM, Neal Kreitzinger wrote: >>> Does git-log --all help? >> >> I don't see how it would. =A0The commits are all reachable from HEAD= , >> which >> would seem to be the problem that --all would correct. >> >> What I'm trying to do is find the commits in which a file differs fr= om >> that same file in any of its parents. > > If you add parent rewriting (--parent, --graph or see it in gitk, wit= h > --full-history) you'll get your B2 commit as it adds commits to have = a > meaningful history. But I don't think this is what you are asking for= =2E Correct. If I add parent rewriting, I get all merges, even those in wh= ich the file is not changed from either parent. Based on what's in the man page for git log about the history simplification algorithm, it seems that B2 should be included in the output when I do a git log --full-history --simplify-history foo.txt, a= s per the steps I noted in the original post. Is my understanding of the algorithm faulty?