From: Johannes Schindelin Date: Tue, 03 Jul 2007 13:39:32 GMT Subject: Re: being nice to patch(1) Message-ID: In-Reply-To: <86y7hxr591.fsf@lola.quinscape.zz> Hi David, [please Cc me, since I will be more likely to miss replies if you do not] On Tue, 3 Jul 2007, David Kastrup wrote: > Johannes Schindelin writes: > > > But maybe they would be willing to install git to get that wonderful > > git-apply program, and that wonderful rename-and-mode-aware git-diff, > > and the git-merge-file program, all of which can operate outside of a > > git repository. (Take that, hg!) > > As long as git-diff lists all added files in a second non-git dirtree > as "/dev/null" when doing > git-diff --name-status -B -M -C dir1 dir2 > its usefulness is limited. > > git-diff --name-status -B -M -C dir1 dir2 > D dir1/auctex-11.84/CHANGES > D dir1/auctex-11.84/COPYING > D dir1/auctex-11.84/ChangeLog > > [...] Yes, directories are a problem. There our DWIMery does not really help. But there is a solution: say git diff --name-status --no-index -B -M -C dir1 dir2 Hth, Dscho