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

Re: [PATCH v2 0/2] Let the sequencer handle the grunt work of rebase -i

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 9, 2017, 22:40 UTC
Message-ID
<xmqq1sv7ng2j.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<cover.1486678952.git.johannes.schindelin@gmx.de>
Johannes Schindelin <johannes.schindelin@gmx.de> writes:
Show 6 quoted lines
> After all of these patch series y'all had to review, this is finally the
> one that switches things over.
>
> Please note that it does not (yet) handle the `git rebase -i --root`
> invocation; I tried to focus on the common case, and I rarely use --root
> myself.

As long as the longer-term goal is clear enough and the short-term approach does not conflict with the goal, solving the most common problem that yields the largest payback first is absolutely the right thing to do, and omitting "--root" and/or "-p" and getting the main use of "-i" right is a great way to start.

Show 9 quoted lines
>  .gitignore                    |  1 +
>  Makefile                      |  1 +
>  builtin.h                     |  1 +
>  builtin/rebase--helper.c      | 40 ++++++++++++++++++++++++++++++++++++++++
>  git-rebase--interactive.sh    | 13 +++++++++++++
>  git.c                         |  1 +
>  t/t3404-rebase-interactive.sh |  2 +-
>  7 files changed, 58 insertions(+), 1 deletion(-)
>  create mode 100644 builtin/rebase--helper.c
And it is surprisingly short and sweet ;-)

Will queue as js/rebase-helper topic, forked at 6e3a7b3398 ("Git 2.12-rc0", 2017-02-03).

Thanks.

PS. in case if anybody is wondering after reading [*1*], at this point, I _have_ read the patches not just the cover letter, looked at the branch name the original author gave to the topic, chose the local topic name I use, and chose where to fork the topic from, but have not applied the patches (so I may later end up saying "the patch does not apply cleanly", "the compiler complains on this line", or "the new code is inconsistent with this existing code that is a bit beyond the context of the patch that I did not notice when I reviewed the patches alone" in a separate message). I do not have a new entry for this topic in the draft of "What's cooking" report yet, or have not decided if the topic would hit 'jch' or 'pu' yet either.

[Reference]
*1* http://public-inbox.org/git/xmqq7f4zqiyj.fsf@gitster.mtv.corp.google.com
Previous: Johannes Schindelin
Message 7 of 7 in “Let the sequencer handle the grunt work of rebase -i”
  1. 0/2 Let the sequencer handle the grunt work of rebase -iJohannes Schindelin, Sep 2, 2016
  2. 2/2 rebase -i: use the rebase--helper builtinJohannes Schindelin, Sep 2, 2016
  3. 1/2 Add a builtin helper for interactive rebasesJohannes Schindelin, Sep 2, 2016
  4. 0/2 Let the sequencer handle the grunt work of rebase -iJohannes Schindelin, Feb 9, 2017
  5. 2/2 rebase -i: use the rebase--helper builtinJohannes Schindelin, Feb 9, 2017
  6. 1/2 Add a builtin helper for interactive rebasesJohannes Schindelin, Feb 9, 2017
  7. Junio C HamanoFeb 9, 2017

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.