From: Junio C Hamano Date: Wed, 20 Mar 2013 20:46:49 GMT Subject: Re: Which file is older in history? Message-ID: <7vobeddcjq.fsf@alter.siamese.dyndns.org> In-Reply-To: Ramkumar Ramachandra writes: > I want to compare two files in a git repository and tell which one was > introduced into the repository earlier, assuming that they're in the > same history line (by ancestry, not timestamp). The naive way to do > this is to find the individual commits that introduced the files > (`rev-list HEAD -- | tail -n 1`), and... This must be a trick question but the naïve way I think of is git log --diff-filter=A -- path1 path2