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

Re: [PATCH] diff: add --no-diff-deleted to make -p more pleasant

From
EWEric Wong <normalperson@yhbt.net>
Date
Jan 30, 2006, 00:38 UTC
Message-ID
<20060130003820.GE15482@Muzzle>
In-Reply-To
<7vy80ykd3j.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 12 quoted lines
> Eric Wong <normalperson@yhbt.net> writes:
> 
> > This is a feature I've stol^Wborrowed from svn that I find very
> > useful since I usually don't care to see what I've deleted.
> 
> There is a thing called --diff-filter, and 
> 
> 	git diff -p --no-diff-deleted
> 
> is equivalent to
> 
> 	git diff -p --diff-filter=AM
Cool, didn't notice this feature before.  Thanks.
Show 7 quoted lines
> when you are not using rename/copy detection (and a byte
> shorter).  Or maybe improve its syntax to also take:
> 
> 	--diff-filter=-D
> 
> That is, a minus followed by list of undesired change class
> letters.
Hmm.. maybe another day.  AM is good enough for now.
-- 
Eric Wong
Previous: Junio C HamanoNext: Jon Loeliger
Message 3 of 4 in “diff: add --no-diff-deleted to make -p more pleasant”
  1. diff: add --no-diff-deleted to make -p more pleasantEric Wong, Jan 29, 2006
  2. Junio C HamanoJan 29, 2006
  3. Eric WongJan 30, 2006
  4. Jon LoeligerJan 30, 2006

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.