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

Re: [PATCH] fmt-patch: Support --attach

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 20, 2006, 20:23 UTC
Message-ID
<Pine.LNX.4.63.0605202214430.634@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vu07k1sr8.fsf@assigned-by-dhcp.cox.net>
Hi,
On Sat, 20 May 2006, Junio C Hamano wrote:
Show 14 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > On Sat, 20 May 2006, Junio C Hamano wrote:
> >
> > As for --check: how about having yet another diff "format": 
> > DIFF_FORMAT_CHECK? Instead of showing the diff, it only shows the line(s) 
> > which are offending.
> 
> Never thought of that but I think it makes sense.  
> 
> I liked the way Sean did the --summary; I am wondering if we
> could clean up the --with-* stuff in a similar way.  We
> currently do "if DIFF_FORMAT_XYZ or with_xyz then do this" which
> is quite honestly disgusting (my fault).

I do not think the --with-* stuff can be done in a similar way. If I do "git log --summary -p", I do not get a summary. The only way to "clean it up" would be to add a linked list of diff_formats (to preserve the order).

But frankly, I think that is overkill. After all, how often have you dreamt about showing first the patch, then the summary, and maybe a diffstat, and after that the patch again, for each commit?

Ciao, Dscho

Previous: Junio C Hamano
Message 7 of 7 in “fmt-patch: Support --attach”
  1. fmt-patch: Support --attachJohannes Schindelin, May 20, 2006
  2. Jakub NarebskiMay 20, 2006
  3. Johannes SchindelinMay 20, 2006
  4. Junio C HamanoMay 20, 2006
  5. Johannes SchindelinMay 20, 2006
  6. Junio C HamanoMay 20, 2006
  7. Johannes SchindelinMay 20, 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.