git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rerere.autoupdate that wouldn't
@ 2012-03-09 22:34 Phil Hord
  2012-03-09 22:46 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Hord @ 2012-03-09 22:34 UTC (permalink / raw)
  To: git@vger.kernel.org

So now I have rerere.autoupdate=true (living on the edge!), and today I
rebased a branch and git did a new thing: it added the automerged file
to the index like I expected. 

Then git did an unexpected thing.  It told me the merge had failed and
it asked me to clean it up.  There were no other conflicts; just this
one conflict that was already automerged and added to my index.

All I had to do was 'git rebase --continue' and off it went.

But I was hoping for more.  I was hoping that rebase would continue on
its own and quit bothering me with these triflings. 

Is this what is supposed to happen?  Should I look into adding
'rerere.autoContinue=true'?

Maybe instead, the sane thing would be to add 'rerere.autoTest=make
test'.  Then if rerere is so worried about messing up my rebase, he can
take a moment to do a build test to comfort his conscience.

Phil

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rerere.autoupdate that wouldn't
  2012-03-09 22:34 rerere.autoupdate that wouldn't Phil Hord
@ 2012-03-09 22:46 ` Junio C Hamano
  2012-03-09 22:51   ` Phil Hord
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2012-03-09 22:46 UTC (permalink / raw)
  To: Phil Hord; +Cc: git@vger.kernel.org

Phil Hord <hordp@cisco.com> writes:

> Is this what is supposed to happen?  Should I look into adding
> 'rerere.autoContinue=true'?

"Yes", and "Perhaps, but there may be a better alternative".

Whatever rerere did, "git merge", "git am", and friends should
report the fact that the result is not just a trivial conflict-free
merge, so that the user can take an appropriate action.  Otherwise
you will be robbing the last chance to eyeball the result from
people who have been using rerere.autoupdate=true and doing so
before committing.

And a better alternative to make "rerere.autoupdate" stronger may be
to make the variable tri-valued, instead of adding a new variable
that does not make any sense when rerere.autoupdate is not set.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rerere.autoupdate that wouldn't
  2012-03-09 22:46 ` Junio C Hamano
@ 2012-03-09 22:51   ` Phil Hord
  0 siblings, 0 replies; 3+ messages in thread
From: Phil Hord @ 2012-03-09 22:51 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Writ Junio C Hamano <gitster@pobox.com>,
> Phil Hord <hordp@cisco.com> writes:
> 
>> Is this what is supposed to happen?  Should I look into adding
>> 'rerere.autoContinue=true'?
> 
> "Yes", and "Perhaps, but there may be a better alternative".
> 
> Whatever rerere did, "git merge", "git am", and friends should
> report the fact that the result is not just a trivial conflict-free
> merge, so that the user can take an appropriate action.  Otherwise
> you will be robbing the last chance to eyeball the result from
> people who have been using rerere.autoupdate=true and doing so
> before committing.
> 
> And a better alternative to make "rerere.autoupdate" stronger may be
> to make the variable tri-valued, instead of adding a new variable
> that does not make any sense when rerere.autoupdate is not set.

Any preference on the third option-name?

I think  'False || True || Continue'

Phil

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-09 22:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09 22:34 rerere.autoupdate that wouldn't Phil Hord
2012-03-09 22:46 ` Junio C Hamano
2012-03-09 22:51   ` Phil Hord

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 NNTP newsgroup(s).