Re: cvs diff -l equivalent?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 30, 2008, 18:18 UTC
- Message-ID
- <alpine.LSU.1.00.0807302016160.3486@wbgn129.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20080730155853.GA27166@cuci.nl>
Hi,
On Wed, 30 Jul 2008, Stephen R. van den Berg wrote:
Show 13 quoted lines
> Johannes Schindelin wrote: > >On Wed, 30 Jul 2008, Stephen R. van den Berg wrote: > >> Someone popped this question on me. > > >I do not know cvs that well anymore. So I do not know what -l does. Care > >to explain? > > Usage: cvs diff [-lR] [-k kopt] [format_options] > [[-r rev1 | -D date1] [-r rev2 | -D date2]] [files...] > -l Local directory only, not recursive > > It shows the diff for all files in the current directory, nothing > deeper, nothing higher.
Okay. This is my version of a solution:
$ find . -maxdepth 1 -type f -print0 | xargs -0 git diff
And no, there is not an easier way. Probably since Git has a snapshot based idea of the contents, i.e. it does not think that the files in a revision are decoupled. Not even the ones in different directories.
Ciao, Dscho