threads / discuss / 26166

git rebase -i doesn't respect rebase.autosquash

Subject: git rebase -i doesn't respect rebase.autosquash

## tl;dr

4 messages between Dec 30, 2010 and Dec 31, 2010.

replies: 3people: 2as markdown or json

Mike Doherty· Dec 30, 2010, 23:48 UTC · lore
Hello,

In a git repo, I have rebase.autosquash enabled by default (in ~/.gitconfig), but whenever I do `git rebase -i`, that setting isn't respected. Is this a known bug, or am I misunderstanding what that setting is meant to do?

Thanks for your help, -Mike Doherty

Martin von Zweigbergk· Dec 30, 2010, 18:37 UTC · re: Mike Doherty · lore

Re: git rebase -i doesn't respect rebase.autosquash

On Thu, 30 Dec 2010, Mike Doherty wrote:
Show 6 quoted lines
> Hello,
> 
> In a git repo, I have rebase.autosquash enabled by default (in
> ~/.gitconfig), but whenever I do `git rebase -i`, that setting isn't
> respected. Is this a known bug, or am I misunderstanding what that
> setting is meant to do?

I also have rebase.autosquash enabled and it works for me. Does it autosquash as you expect if you pass '--autosquash' on the command line? Which version of Git are you running?

/Martin
Mike Doherty· Dec 31, 2010, 00:39 UTC · re: Martin von Zweigbergk · lore

Re: git rebase -i doesn't respect rebase.autosquash

On 10-12-30 01:37 PM, Martin von Zweigbergk wrote:
> I also have rebase.autosquash enabled and it works for me. Does it 
> autosquash as you expect if you pass '--autosquash' on the command 
> line? Which version of Git are you running?
Yes, it does. I'm using 1.7.0.4
-Mike
Martin von Zweigbergk· Dec 30, 2010, 18:46 UTC · re: Mike Doherty · lore

Re: git rebase -i doesn't respect rebase.autosquash

On Thu, 30 Dec 2010, Mike Doherty wrote:
Show 6 quoted lines
> On 10-12-30 01:37 PM, Martin von Zweigbergk wrote:
> > I also have rebase.autosquash enabled and it works for me. Does it 
> > autosquash as you expect if you pass '--autosquash' on the command 
> > line? Which version of Git are you running?
> 
> Yes, it does. I'm using 1.7.0.4
Ok, that explains it. The configuration was introduced in 1.7.3.

Regards, Martin

← back to recent threads