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

Re: How do I set the committer with cherry-pick? (or is there a better way to get changes from someone?)

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 6, 2008, 01:18 UTC
Message-ID
<7vwsnbu6fe.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<810a540e0804051758j5daea9a8vfe36396ecbb36a08@mail.gmail.com>
"Pat Maddox" <pergesu@gmail.com> writes:
Show 5 quoted lines
> And finally, when I experimented with doing a pull instead of
> cherry-pick, it listed the original author as the committer instead of
> myself.  I think you're absolutely right that the burden should be on
> them, so I can tell them to create a clean commit branch and just pull
> from it, but I still need to be listed as the committer.

Well, at that point, you are not the committer for their changes on their clean history, and you shouldn't expect to be recorded as such. Your contribution to the project might still be recorded as the committer of the merge commit that pulled their contributions in, though.

Any history is just as valid as your integration branch's history. There may be hundreds of potential histories in the universe --- each and every contributor, anybody who clones and plays with the project may create his own history. Each contributor in their repository will be commiting their changes and building their histories. If one of these alternative histories is so agreeable for you that makes you happy to pull from it, that means the creator of that history did extra work to keep it clean (or rebuilt it to look like clean). Give the contributor the credit for his own segment of the history when you merge from him.

Among these many alternate histories, yours may happen to be the one many people consider more authoritative than others', but other than that, you are not any more special than them.

That's what distributed means.
Previous: Pat Maddox
Message 4 of 4 in “How do I set the committer with cherry-pick? (or is there a better way to get changes from someone?)”
  1. Pat MaddoxApr 5, 2008
  2. Junio C HamanoApr 6, 2008
  3. Pat MaddoxApr 6, 2008
  4. Junio C HamanoApr 6, 2008

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.