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

Re: [PATCH 0/7] New sequencer workflow!

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 13, 2011, 20:56 UTC
Message-ID
<7v39droi63.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1321181181-23923-1-git-send-email-artagnon@gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 14 quoted lines
> This series preserves the old workflow:
>
>   $ git cherry-pick foo
>   ... conflict ...
>   $ echo "resolved" >problematicfile
>   $ git add problematicfile
>   $ git commit
>
>   $ git cherry-pick foo..bar
>   ... conflict ...
>   $ echo "resolved" >problematicfile
>   $ git add problematicfile
>   $ git commit
>   $ git revert --continue # No, there are no typos

Hmm, doesn't "git add && git cherry-pick --continue" (i.e. no "git commit" in between) trigger the "commit the resolution first and then go on"?

Show 19 quoted lines
> And introduces a brand new workflow:
>
>   $ git cherry-pick foo
>   ... conflict ...
>   $ echo "resolved" >problematicfile
>   $ git add problematicfile
>   $ git sequencer --continue
>
>   $ git cherry-pick foo..bar
>   ... conflict ...
>   $ echo "resolved" >problematicfile
>   $ git add problematicfile
>   $ git sequencer --continue
>
>   $ git revert moo..baz
>   ... conflict ...
>   $ echo "resolved" >problematicfile
>   $ git add problematicfile
>   $ git sequencer --continue

Almost. If these are replaced with "git cherry-pick --continue" and "git revert --continue" that internally triggers "git sequencer --continue" *and* errors out if a wrong command was used to "--continue", it would be perfect.

The longer-term ultimate goal would be to make it "git continue" that covers more than the sequencer based workflow, i.e. allow "git merge" that conflicted to be concluded with "edit && git add && git continue".

Previous: Ramkumar RamachandraNext: Junio C Hamano
Message 13 of 17 in “New sequencer workflow!”
  1. 0/7 New sequencer workflow!Ramkumar Ramachandra, Nov 13, 2011
  2. 1/7 sequencer: factor code out of revert builtinRamkumar Ramachandra, Nov 13, 2011
  3. 2/7 sequencer: invalidate sequencer state without todoRamkumar Ramachandra, Nov 13, 2011
  4. 3/7 sequencer: handle single-commit pick as special caseRamkumar Ramachandra, Nov 13, 2011
  5. Junio C HamanoNov 13, 2011
  6. Ramkumar RamachandraNov 15, 2011
  7. Junio C HamanoNov 15, 2011
  8. Ramkumar RamachandraNov 16, 2011
  9. 4/7 sequencer: handle cherry-pick conflict in last commitRamkumar Ramachandra, Nov 13, 2011
  10. 5/7 sequencer: introduce git-sequencer builtinRamkumar Ramachandra, Nov 13, 2011
  11. 6/7 sequencer: teach '--continue' how to commitRamkumar Ramachandra, Nov 13, 2011
  12. 7/7 sequencer: teach parser about CHERRY_PICK_HEADRamkumar Ramachandra, Nov 13, 2011
  13. Junio C HamanoNov 13, 2011
  14. Junio C HamanoNov 14, 2011
  15. Ramkumar RamachandraNov 15, 2011
  16. Phil HordNov 15, 2011
  17. Ramkumar RamachandraNov 15, 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.