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

Re: Why won't "git rebase -Xrenormalize -i $REBASE_SHA" do anything?

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 31, 2022, 23:30 UTC
Message-ID
<YfhxESEsZo7CwFiz@camp.crustytoothpaste.net>
In-Reply-To
<20220131110149.GE16463@raven.inka.de>
On 2022-01-31 at 11:01:50, Josef Wolf wrote:
Show 21 quoted lines
> Hello,
> 
> I've added "* text=auto" to an existing repo with a completely linear history.
> 
> Now, as expected, every rebase operation gives me lots of conflicts, which are
> hard to resolve.
> 
> So I'd like to clean up the history:
> 
>   $ git rebase -Xrenormalize -i $REBASE_SHA
> 
> But this turns out to be a no-op? It says immediately
> 
>   Successfully rebased and updated refs/heads/wip-normalize
> 
> without even the counter which is usually output to show progress during an
> interactive rebase as it is working through the rebase-todo. I can confirm
> that nothing has happened by checking the sha of the branch.
> 
> So, what am I missing? How would I renormalize all the commits of a branch?
> The branch has linear history, no merges there.

I think what you probably want is to add the -f option. By default, Git doesn't perform a rebase when the current branch is up to date with the base branch. If you want to do it anyway, in this case, to rewrite commits, then -f should make that happen.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Torsten B��gershausen
Message 3 of 3 in “Why won't "git rebase -Xrenormalize -i $REBASE_SHA" do anything?”
  1. Josef WolfJan 31, 2022
  2. Torsten B��gershausenJan 31, 2022
  3. brian m. carlsonJan 31, 2022

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.