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

Re: git-diff new files (without using index)

From
Miles Bader <miles@gnu.org>
Date
Aug 5, 2007, 04:37 UTC
Message-ID
<87abt6lhq8.fsf@catnip.gol.com>
In-Reply-To
<7vd4y2ipd0.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <gitster@pobox.com> writes:
> I suspect that it's probably half superstition and half disease
> to wish for "diff /dev/null new-file".
Er, please, a bit of consideration.  It's not superstition, it's not a disease.

I _want to use the index_: I want to stage changes, and then make more changes, and just generally be able to treat these three states (HEAD, indexed, non-indexed) as points which can be used as inputs to git-diff -- and I want _applyable patch files_ as the output from git-diff, not pretty diffs for browsing.

Thanks,
-Miles
-- 
Any man who is a triangle, has thee right, when in Cartesian Space, to
have angles, which when summed, come to know more, nor no less, than
nine score degrees, should he so wish.  [TEMPLE OV THEE LEMUR]
Previous: Junio C Hamano
Message 6 of 6 in “git-diff new files (without using index)”
  1. Miles BaderAug 5, 2007
  2. Shawn O. PearceAug 5, 2007
  3. Miles BaderAug 5, 2007
  4. Shawn O. PearceAug 5, 2007
  5. Junio C HamanoAug 5, 2007
  6. Miles BaderAug 5, 2007

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.