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

Re: [PATCH 1/3] Move bundle specific stuff into bundle.[ch]

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 18, 2007, 07:26 UTC
Message-ID
<7v644i894x.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070718061931.GZ32566@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
> Yea, this I like even better than what I posted.  Now we just need
> a suck^H^H^H^Hprogrammer to implement a working prototype and see
> how folks like more realistic diffs generated with it.  ;-)
I have to disgree.

We on the git list *live* in pretty much git-only world (ok, I am ignoring git-svn people for now ;-)), so it might feel it beneficial to add a new output format to git-diff.

But many users of git generated patch needs to interact with patches that are not generated by git. I think an additional postprocessor in patchutils/interdiff toolchest would probably make much more sense. Then a person who reviews a patch that is supposed to be line movement can use the filter to verify the parts that should be only line movements are indeed are movements and nothing else.

Speaking of "diff" output, what I would like to see is a support of 'copied context' (i.e. traditional 'context diff' format you would get from "diff -c"), in addition to the 'unified context' we support. Generating copied context may help people who need to give patches to others that accept only copied context format patches (are there important projects that take only cpied context format patches?). Being able to accept copied context format patches in 'git-apply' would also be handy.

Of course, we could use interdiff to mangle copied context format into unified context format, so 'git-apply' is not a big deal, though.

Previous: Shawn O. PearceNext: Johannes Schindelin
Message 7 of 11 in “Move bundle specific stuff into bundle.[ch]”
  1. 1/3 Move bundle specific stuff into bundle.[ch]Johannes Schindelin, Jul 17, 2007
  2. Daniel BarkalowJul 18, 2007
  3. Daniel BarkalowJul 18, 2007
  4. Shawn O. PearceJul 18, 2007
  5. Junio C HamanoJul 18, 2007
  6. Shawn O. PearceJul 18, 2007
  7. Junio C HamanoJul 18, 2007
  8. Johannes SchindelinJul 18, 2007
  9. Johannes SchindelinJul 18, 2007
  10. Daniel BarkalowJul 18, 2007
  11. Johannes SchindelinJul 18, 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.