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

Re: [GSoC][PATCH v3 1/4] rebase: duplicate git-rebase--interactive.sh to git-rebase--preserve-merges.sh

From
Junio C Hamano <gitster@pobox.com>
Date
May 26, 2018, 02:54 UTC
Message-ID
<xmqqk1rrm8ic.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180524114958.26521-2-alban.gruin@gmail.com>
Alban Gruin <alban.gruin@gmail.com> writes:
Show 10 quoted lines
> This duplicates git-rebase--interactive.sh to
> git-rebase--preserve-merges.sh. This is done to split -p from -i. No
> modifications are made to this file here, but any code that is not used by -p
> will be stripped in the next commit.
>
> Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
> ---
>  .gitignore                     |    1 +
>  Makefile                       |    2 +
>  git-rebase--preserve-merges.sh | 1069 ++++++++++++++++++++++++++++++++++++++++

I would normally say "Yuck" to an approach like this series, because it does not force us to make any explicit effort to share as much code between the two codepaths.

But the codepath for "-p" is something that has been abandoned even by its original author and would be going away, so the net effect of this series to the project in the longer term is to remove the "dead code" that will be made unnecessary from "git-rebase--interactive" when support for "-p" gets discarded in a distant future, and do so before we actually remove "-p" (and replace it with the "recreate merges" feature).

So I won't have objection to the approach taken in this series. I may still raise issues on individual changes, though.

Thanks.
Previous: Alban GruinNext: Alban Gruin
Message 19 of 26 in “rebase: split rebase -p from rebase -i”
  1. Alban GruinMay 22, 2018
  2. [GSoC][PATCH 1/4] rebase: duplicate git-rebase--interactive.sh to git-rebase--preserve-merges.shAlban Gruin, May 22, 2018
  3. Stefan BellerMay 22, 2018
  4. Alban GruinMay 22, 2018
  5. [GSoC][PATCH 2/4] rebase: strip unused code in git-rebase--preserve-merges.shAlban Gruin, May 22, 2018
  6. [GSoC][PATCH 3/4] rebase: use the new git-rebase--preserve-merges.shAlban Gruin, May 22, 2018
  7. [GSoC][PATCH 4/4] rebase: remove -p code from git-rebase--interactive.shAlban Gruin, May 22, 2018
  8. Stefan BellerMay 22, 2018
  9. [GSoC][PATCH v2 0/4] rebase: split rebase -p from rebase -iAlban Gruin, May 22, 2018
  10. [GSoC][PATCH v2 2/4] rebase: strip unused code in git-rebase--preserve-merges.shAlban Gruin, May 22, 2018
  11. [GSoC][PATCH v2 3/4] rebase: use the new git-rebase--preserve-merges.shAlban Gruin, May 22, 2018
  12. [GSoC][PATCH v2 1/4] rebase: duplicate git-rebase--interactive.sh to git-rebase--preserve-merges.shAlban Gruin, May 22, 2018
  13. [GSoC][PATCH v2 4/4] rebase: remove -p code from git-rebase--interactive.shAlban Gruin, May 22, 2018
  14. [GSoC][PATCH v3 0/4] rebase: split rebase -p from rebase -iAlban Gruin, May 24, 2018
  15. [GSoC][PATCH v3 4/4] rebase: remove -p code from git-rebase--interactive.shAlban Gruin, May 24, 2018
  16. [GSoC][PATCH v3 3/4] rebase: use the new git-rebase--preserve-merges.shAlban Gruin, May 24, 2018
  17. [GSoC][PATCH v3 2/4] rebase: strip unused code in git-rebase--preserve-merges.shAlban Gruin, May 24, 2018
  18. [GSoC][PATCH v3 1/4] rebase: duplicate git-rebase--interactive.sh to git-rebase--preserve-merges.shAlban Gruin, May 24, 2018
  19. Junio C HamanoMay 26, 2018
  20. Alban GruinMay 24, 2018
  21. Johannes SchindelinMay 25, 2018
  22. [GSoC][PATCH v4 0/4] rebase: split rebase -p from rebase -iAlban Gruin, May 28, 2018
  23. [GSoC][PATCH v4 1/4] rebase: introduce a dedicated backend for --preserve-mergesAlban Gruin, May 28, 2018
  24. [GSoC][PATCH v4 2/4] rebase: strip unused code in git-rebase--preserve-merges.shAlban Gruin, May 28, 2018
  25. [GSoC][PATCH v4 3/4] rebase: use the new git-rebase--preserve-merges.shAlban Gruin, May 28, 2018
  26. [GSoC][PATCH v4 4/4] rebase: remove -p code from git-rebase--interactive.shAlban Gruin, May 28, 2018

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.