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

-p diff output and the 'Index:' line

From
Petr Baudis <pasky@ucw.cz>
Date
May 29, 2005, 07:15 UTC
Message-ID
<20050529071520.GC1036@pasky.ji.cz>
  Hello,
  so I've tried how would cg-diff output look like if I used the
git-diff -p argument, and I found that I miss the 'Index:' line.
Actually, what I really miss is the separator ==== line just below, but
it'd probably look weird without the 'Index:' line. I became used to the
separators and they enable me to quickly visually notice the files
boundary, which is more drudging if you have just the 'diff --git' line.
  What do you think? Would you hate it to show up in the diffs, or are
you ok with it?
  Thanks,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Next: Junio C Hamano
Message 1 of 9 in “-p diff output and the 'Index:' line”
  1. Petr BaudisMay 29, 2005
  2. Junio C HamanoMay 29, 2005
  3. SeanMay 29, 2005
  4. Thomas GlanzmannMay 29, 2005
  5. Petr BaudisMay 29, 2005
  6. Junio C HamanoMay 29, 2005
  7. Petr BaudisMay 29, 2005
  8. Junio C HamanoMay 30, 2005
  9. Petr BaudisMay 30, 2005

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.