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

Re: [RFC PATCH v2] revert: Implement --abort processing

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jun 12, 2011, 12:21 UTC
Message-ID
<20110612122145.GA20495@elie>
In-Reply-To
<BANLkTi=T0wCg1bKzmtQEQ-J-5ogqRZaqRg@mail.gmail.com>
Ramkumar Ramachandra wrote:
> My notion of --abort has changed: I simply want to remove the state
> files for the cherry-pick so that the user can execute more
> cherry-pick/ revert commands.  I didn't think a soft reset would be
> intrusive.

Well, if you understand this part then you can forget most of the rest of what I said. Think about this for a second. New user (or forgetful, experienced user), has just run

	git cherry-pick HEAD..topic

to integrate the changes from topic in a linear history. Ran into conflicts, wanted to give up. Ran

	git cherry-pick --abort
Would this person expect:
 - that "git diff --cached" would return a pile of changes
 - that "git reset --keep", "git reset --merge", "git checkout",
   "git merge", and various other commands would refuse to do much,
   for fear of clobbering the new "local changes"
 - that the worktree would be unchanged
 - etc

Would they be happy about it? Just put yourself in their shoes. A soft reset is near the most intrusive behavior possible.

And that is a good way to think about the UI for any new facility. If you disregard about how flexible it is in abstract, how easy to implement, how elegant-sounding and just think about a person using it will find her quality of life improved or worsened, that is (1) a good sanity-check on a design and (2) basically the only way to explain it to other people.

Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 4 of 8 in “revert: Implement --abort processing”
  1. revert: Implement --abort processingRamkumar Ramachandra, Jun 11, 2011
  2. Jonathan NiederJun 11, 2011
  3. Ramkumar RamachandraJun 12, 2011
  4. Jonathan NiederJun 12, 2011
  5. Ramkumar RamachandraJun 12, 2011
  6. Jonathan NiederJun 12, 2011
  7. Ramkumar RamachandraJun 13, 2011
  8. Jonathan NiederJun 13, 2011

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.