git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Stephen R. van den BergNext: Thomas Rast
Message 4 of 8 in “cvs diff -l equivalent?”
  1. Stephen R. van den BergJul 30, 2008
  2. Johannes SchindelinJul 30, 2008
  3. Stephen R. van den BergJul 30, 2008
  4. Johannes SchindelinJul 30, 2008
  5. Thomas RastJul 30, 2008
  6. Stephen R. van den BergJul 30, 2008
  7. Mikael MagnussonJul 30, 2008
  8. Linus TorvaldsJul 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.