Re: being nice to patch(1)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 3, 2007, 13:39 UTC
- Message-ID
- <Pine.LNX.4.64.0707031437560.4071@racer.site>
- 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:
Show 18 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> 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