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

Re: Refactoring git-rebase.sh and git-rebase--interactive.sh

From
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Date
Nov 7, 2010, 01:57 UTC
Message-ID
<AANLkTikbSU7LMnrT7uz5SSd8_x_cK_dHiVN37McJe+AT@mail.gmail.com>
In-Reply-To
<AANLkTinSb09oZHN8br5goeoG2b+Cgra88E1qeLqi-Y=z@mail.gmail.com>
> 2. a. If --continue, --skip or --abort requested, rebase-apply/ or
>      rebase-merge/ must exist. (What if -i is also passed and
>          rebase-apply/ exists?)
>   b. Otherwise, rebase-apply/ or rebase-merge/ must not exist

This actually hints at a more general question, namely whether command line or saved options should be used when continuing a rebase. For example, if an interactive rebase has been started with a certain merge strategy, should that merge strategy be used throughout the rebase, or should whatever is passed on the command line when continuing be used instead? Does it depend on which option we are talking about?

As far as I can understand from the code, it seems like non-interactive rebase currently does not store e.g. the merge strategy, but allows it to be passed on the command line together with '--continue' (but only if passed before). Interactive rebase, OTOH, does store the option when the rebase is initated and does not allow it to be overriden on the command line. I have not tested either of them, so I may very well be wrong.

Whatever the current behavior is, how do you think it *should* behave?
Previous: Martin von Zweigbergk
Message 9 of 9 in “Refactoring git-rebase.sh and git-rebase--interactive.sh”
  1. Martin von ZweigbergkNov 2, 2010
  2. Johannes SixtNov 2, 2010
  3. Christian CouderNov 3, 2010
  4. Martin von ZweigbergkNov 3, 2010
  5. Yann DirsonNov 4, 2010
  6. Pat NotzNov 4, 2010
  7. Christian CouderNov 5, 2010
  8. Martin von ZweigbergkNov 6, 2010
  9. Martin von ZweigbergkNov 7, 2010

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.