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

Re: My custom cccmd

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 27, 2009, 21:53 UTC
Message-ID
<7vzl7c4i81.fsf@alter.siamese.dyndns.org>
In-Reply-To
<94a0d4530910250804w3a7da36eke10710eb1cbb03c1@mail.gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> writes:
Show 8 quoted lines
> I explored this a bit more and I've come to the conclusion that we
> actually don't wand to discard the previous commits in the patch
> series. Let's think about this example:
> 0001 <- John
> 0002 <- Me overriding some changes from John
>
> In this case we want John to appear in the CC list of 0002, because we
> are changing his code.

There are two cases: your patch partially overrides his code, and your patch completely rewrites/removes his code.

Obviously in the former case you do want to Cc, but there are parts of his change that remain in the final result, so this case does not matter in this discussion. You will Cc him because of these remaining lines anyway.

In the latter case, the only contribution that remains from him is a commit with his log message that does not help describing anything in the end result, cluttering the history.

In such a case, I would imagine that the reviewers would want to see a cleaned up series that does not have his patch that is irrelevant for understanding the final result. John might want to know about it, if only to raise objection to the way how you arranged your series. For that reason, I think it makes sense to Cc him.

But it is a rather a convoluted logic, if you ask me. You find John and Cc him, primarily so that he can point out that you should be redoing the series not to have his patch as an intermediate state in the series to begin with, because his commit does not contribute to the end result.

It might make more sense if your tool told you about such a case directly, rather than helping you find John so that he can tell you ;-).

Previous: Felipe ContrerasNext: Felipe Contreras
Message 5 of 8 in “My custom cccmd”
  1. Felipe ContrerasOct 15, 2009
  2. Junio C HamanoOct 15, 2009
  3. Felipe ContrerasOct 15, 2009
  4. Felipe ContrerasOct 25, 2009
  5. Junio C HamanoOct 27, 2009
  6. Felipe ContrerasOct 30, 2009
  7. Junio C HamanoOct 30, 2009
  8. Felipe ContrerasNov 2, 2009

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.