* Bug: Since Git 2.13.2 git rebase autostash doesn't use fast-forward (poor performance)
@ 2017-06-27 14:34 neuling
2017-06-27 15:02 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: neuling @ 2017-06-27 14:34 UTC (permalink / raw)
To: git
Hi,
since the latest version 2.13.2 "git pull --rebase --autostash" doesn't
use a fast forward if possible.
My global git config contains "pull.rebase=preserve" and
"rebase.autostash=true". My working directory is clean with no changes.
When I use "git pull" git doesn't use a possible fast forward merge. If I
remove "rebase.autostash" from my git config a fast forward merge will
take place.
If a fast forward merge is possible and the working directory is clean
autostash should do nothing and the fast forward merge should happen.
Is it also possible to implement autostash on fast forward merge that way
to stash changes, do the fast forward merge and at least to apply the
stashed changes?
Another problem is if "git pull rebase" without autostash can do a fast
forward merge the rebase validation for changed files in my working
directory will be done.
I think in that case the fast forward merge validation should run. That
would prevent the need to stash local changes if they do not affect files
of the commits to fast forward from origin branch.
Regards,
Mattias
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: Since Git 2.13.2 git rebase autostash doesn't use fast-forward (poor performance)
2017-06-27 14:34 Bug: Since Git 2.13.2 git rebase autostash doesn't use fast-forward (poor performance) neuling
@ 2017-06-27 15:02 ` Junio C Hamano
2017-06-28 8:22 ` neuling
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2017-06-27 15:02 UTC (permalink / raw)
To: neuling; +Cc: git
neuling@dakosy.de writes:
> since the latest version 2.13.2 "git pull --rebase --autostash" doesn't
> use a fast forward if possible.
This may not be a bug but instead a fix made deliberately.
cf. http://public-inbox.org/git/CAAZatrCaoB7EXVrCvC9RKmO02G5xcp8GPBaJefHfv7zAXVpL3Q@mail.gmail.com/
A deciding excerpt from the thread was:
> Correctness must trump optimizations
Patches to further update and resurrect the optimization without
breaking correctness of course are of course very much welcomed.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug: Since Git 2.13.2 git rebase autostash doesn't use fast-forward (poor performance)
2017-06-27 15:02 ` Junio C Hamano
@ 2017-06-28 8:22 ` neuling
0 siblings, 0 replies; 3+ messages in thread
From: neuling @ 2017-06-28 8:22 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Could you see this as suggestion for performance improvement or should I
send another e-mail for a new task?
Regards,
Mattias
Junio C Hamano <jch2355@gmail.com> schrieb am 27.06.2017 17:02:14:
> Von: Junio C Hamano <gitster@pobox.com>
> An: neuling@dakosy.de
> Kopie: git@vger.kernel.org
> Datum: 27.06.2017 17:02
> Betreff: Re: Bug: Since Git 2.13.2 git rebase autostash doesn't use
> fast-forward (poor performance)
> Gesendet von: Junio C Hamano <jch2355@gmail.com>
>
> neuling@dakosy.de writes:
>
> > since the latest version 2.13.2 "git pull --rebase --autostash"
doesn't
> > use a fast forward if possible.
>
> This may not be a bug but instead a fix made deliberately.
>
> cf. http://public-inbox.org/git/
> CAAZatrCaoB7EXVrCvC9RKmO02G5xcp8GPBaJefHfv7zAXVpL3Q@mail.gmail.com/
>
> A deciding excerpt from the thread was:
>
> > Correctness must trump optimizations
>
> Patches to further update and resurrect the optimization without
> breaking correctness of course are of course very much welcomed.
>
> Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-28 8:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-27 14:34 Bug: Since Git 2.13.2 git rebase autostash doesn't use fast-forward (poor performance) neuling
2017-06-27 15:02 ` Junio C Hamano
2017-06-28 8:22 ` neuling
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).