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

Re: [RFC] gitweb TODO

From
Junio C Hamano <junkio@cox.net>
Date
Nov 18, 2006, 00:04 UTC
Message-ID
<7vveldhb7u.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200611172224.40252.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 6 quoted lines
> ... But for gitweb more important than producing safe patch
> is producing _readable_ patch[*1*]. Hence request for -T option 
> (or under other, better name) to git-diff which would _not_
> split patch (not create two patches for one raw difftree line).
>  
> [*1*] Well, as far as diff for symlink is readable anyway.

Honestly, I do not have strong feeling either way. As you say, I suspect diff to change between symlink and regular file is not readable no matter how you present it, and it is a corner case that is not very interesting. It happens in real life but it is rare enough that split patches or a single patch would not make much difference either way.

So I would not oppose to a patch to add an option to update git-diff to produce either format, but I doubt it is worth the effort required to make sure that the change does not break anything else and also to make matching adjustment to git-apply, so that it can understand both formats.

Show 7 quoted lines
>> I am not sure what you mean by patchset part, but if you are
>> talking about the multiway diff text, I think most of the time
>> output from "-c -p" is much less interesting than "--cc".
>
> Sorry, perhaps I was not clear. I'd like for git-diff-tree --cc
> --raw -p to output both raw part (perhaps taken from -c) and
> patch part...

I can see why somebody might want to do this, to exactly the same degree that I can see why somebody might want to use the combination of "--raw -p".

I think this would work in git.git itself:
	git diff-tree --cc --numstat --raw -p v1.0.0
Previous: Jakub Narebski
Message 6 of 6 in “[RFC] gitweb TODO”
  1. Jakub NarebskiNov 17, 2006
  2. Junio C HamanoNov 17, 2006
  3. Jakub NarebskiNov 17, 2006
  4. Junio C HamanoNov 17, 2006
  5. Jakub NarebskiNov 17, 2006
  6. Junio C HamanoNov 18, 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.