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

Re: two git-cherry-pick enhancements

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
May 22, 2008, 08:58 UTC
Message-ID
<2e24e5b90805220158n5c31da1yf98cac8b432a2d9d@mail.gmail.com>
In-Reply-To
<20080521163817.GA13124@denkbrett.schottelius.org>

On Wed, May 21, 2008 at 10:08 PM, Nico -telmich- Schottelius <nico-git-20080521@schottelius.org> wrote:

Show 8 quoted lines
> - Apply only parts of the patch which applies to <file ...>:
>   I sometimes want to apply patches only to some, but not all
>   files the patch introduces
>
> - Interactively selecting which parts to apply:
>   I want only 7 out of 10 changes the patch introduces.
>   It would help alot, if I could choose which parts I want
>   to apply for every part of the patch.

Both of these are (often, though not always) signs that commits are not granular enough. Your branch maintainer or developer has combined unrelated things into one commit. In an ideal world, he would put each piece as a separate commit, such that if you pick one of those apart, it doesn't make sense.

This is also usually a sign of someone using a central VCS model (or mental model) on that side.

Unless you have no control over who sends you these commits, you may want to address that also in whatever way possible.

IMO stuff like "git add -a" (and the GUI equivalents) were meant for your own development, so that you can essentially re-write history in a sane sequence after having worked on a complex task.

Regards,
Sitaram
Previous: Govind SalinasNext: Johannes Schindelin
Message 3 of 4 in “two git-cherry-pick enhancements”
  1. Nico -telmich- SchotteliusMay 21, 2008
  2. Govind SalinasMay 21, 2008
  3. Sitaram ChamartyMay 22, 2008
  4. Johannes SchindelinMay 22, 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.