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

Re: What's cooking in git.git (Aug 2013, #01; Thu, 1)

From
Thomas Rast <trast@inf.ethz.ch>
Date
Aug 3, 2013, 10:55 UTC
Message-ID
<87a9kz3uy4.fsf@hexa.v.cablecom.net>
In-Reply-To
<7vbo5hqe6r.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 14 quoted lines
> * tr/log-full-diff-keep-true-parents (2013-08-01) 1 commit
>  - log: use true parents for diff even when rewriting
>
>  Output from "git log --full-diff -- <pathspec>" looked strange,
>  because comparison was done with the previous ancestor that touched
>  the specified <pathspec>, causing the patches for paths outside the
>  pathspec to show more than the single commit has changed.
>
>  I am not sure if that is necessarily a problem, though.  Output
>  from "git log --full-diff -2 -- <pathspec>" without this change
>  will be applicable to some codebase, but after this change that
>  will no longer be true (you will get only tiny parts of the change
>  that were made by the two commits in question, while missing all
>  the other changes).

Hmm. Uwe's original complaint was that --stat -- as in "what other things are touched when we modify foo" -- is nonsensical.

In addition, applying what you describe above would be a very strange form of rebase: one that squashes everything into the commits that affect the given files. When would it ever make sense to do such squashing? After all, you'd lose all the commit splits&messages in between.

If you care about it, I can introduce a new flag that lets the user pick; it's pretty trivial. But it seems very strange to me.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “What's cooking in git.git (Aug 2013, #01; Thu, 1)”
  1. Junio C HamanoAug 1, 2013
  2. What's in "What's cooking"Junio C Hamano, Aug 1, 2013
  3. Thomas RastAug 3, 2013
  4. Junio C HamanoAug 5, 2013
  5. Thomas RastAug 6, 2013
  6. Junio C HamanoAug 6, 2013

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.