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

Re: [PATCH] fix parallel make problem

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 31, 2007, 16:01 UTC
Message-ID
<7vmyw71yn5.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7vr6lj1zg3.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 13 quoted lines
> "Michael S. Tsirkin" <mst@dev.mellanox.co.il> writes:
> ...
>> So maybe we can suppress the warning when the output is not a tty?
>
> What's your point?
>
> I did not even want to apply that "empty diff --git removal"
> patch.  I certainly do _NOT_ want to suppress that replacement
> warning anywhere.
>
> You are seriously tempting me to revert the commit
> fb13227e089f22dc31a3b1624559153821056848 (git-diff: squelch
> "empty" diffs)...
This probably needs clarification.

That warning came because I was experimenting your reproduction recipe of touching revision.c before building. In earlier git, it would have shown "diff --git a/revision.c b/revision.c" without any actual diff text to remind me of that fact, and I would have liked it better than the current "warning at the end" behaviour for this particular case. It was a reminder that my recollection of what I did (and what my understanding of what the state of my work tree is) matches the reality, but the new "squelched" behaviour lost that value.

With the older git, whenever I sent out such a "this is how you would do it" patch without committing [*1*], I removed those "expected to be empty" diffs by hand after making a mental note that these were to be expected and my understanding of where I am matches reality. It was a good thing.

The new "single warning at the end" was deliberately done to reduce the "clutter" (which, this exchange is reminding me was not clutter at all but valuable information) as a response to requests from some people on the list, but because it was made much less visible, it made me to miss it.

Having said that, I am _not_ going to revert that change at this late in the game, but I am really tempted to add an option and a configuration variable to revive the original behaviour (and of course I'd set that configuration variable in _my_ repository).

[Footnote]

*1* Most of the patches I send out to the list are done that way; I do "commit then send patch" much less often than "edit, test, send 'diff HEAD' to the list and reset, intending to later "am" it from the list if it is accepted favourably on the list".

Previous: Johannes SchindelinNext: Jeff King
Message 14 of 26 in “parallel make problem with git”
  1. Michael S. TsirkinAug 30, 2007
  2. Junio C HamanoAug 30, 2007
  3. Michael S. TsirkinAug 30, 2007
  4. fix parallel make problemMichael S. Tsirkin, Aug 30, 2007
  5. Junio C HamanoAug 31, 2007
  6. Michael S. TsirkinAug 31, 2007
  7. Junio C HamanoAug 31, 2007
  8. Michael S. TsirkinAug 31, 2007
  9. Junio C HamanoAug 31, 2007
  10. Michael S. TsirkinAug 31, 2007
  11. Junio C HamanoAug 31, 2007
  12. Michael S. TsirkinAug 31, 2007
  13. Johannes SchindelinAug 31, 2007
  14. Junio C HamanoAug 31, 2007
  15. Jeff KingAug 31, 2007
  16. diff: resurrect the traditional empty "diff --git" behaviourJunio C Hamano, Aug 31, 2007
  17. Jeff KingAug 31, 2007
  18. Johannes SchindelinAug 31, 2007
  19. Junio C HamanoAug 31, 2007
  20. Johannes SchindelinAug 31, 2007
  21. David KastrupAug 31, 2007
  22. Alex RiesenAug 31, 2007
  23. Steven GrimmAug 31, 2007
  24. Junio C HamanoSep 1, 2007
  25. Matthieu MoySep 3, 2007
  26. Junio C HamanoSep 3, 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.