Re: [PATCH 1/3] revert: rename --reset option to --quit

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 1/3] revert: rename --reset option to --quit

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:30

Jonathan Nieder [off-list ref] writes:
The option to "git cherry-pick" and "git revert" to discard the
sequencer state introduced by v1.7.8-rc0~141^2~6 (revert: Introduce
--reset to remove sequencer state, 2011-08-04) has a confusing name.
Change it now, while we still have the time.

Mechanics:

This commit removes the "git cherry-pick --reset" option.  Hopefully
nobody was using it.  If somebody was, we can add it back again as a
synonym.

The new name for "cherry-pick, please get out of my way, since I've
long forgotten about the sequence of commits I was cherry-picking when
you wrote that old .git/sequencer directory" is --quit.  
Wouldn't it match other commands better if we called this --abort instead
of --quit?

Other than that I think I agree with the reasoning (and I think I too had
encountered the irritation with the "sequencer state").

Re: [PATCH 1/3] revert: rename --reset option to --quit

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:52:30

Junio C Hamano [off-list ref] writes:
Jonathan Nieder [off-list ref] writes:
quoted
The option to "git cherry-pick" and "git revert" to discard the
sequencer state introduced by v1.7.8-rc0~141^2~6 (revert: Introduce
--reset to remove sequencer state, 2011-08-04) has a confusing name.
Change it now, while we still have the time.

Mechanics:

This commit removes the "git cherry-pick --reset" option.  Hopefully
nobody was using it.  If somebody was, we can add it back again as a
synonym.

The new name for "cherry-pick, please get out of my way, since I've
long forgotten about the sequence of commits I was cherry-picking when
you wrote that old .git/sequencer directory" is --quit.  
Wouldn't it match other commands better if we called this --abort instead
of --quit?
Actually from what I understand --reset / --quit has to have different
meaning than --abort.  While for multi-commit operation --abort goes back
to the state before last operation, --reset / --quit just clears sequencer
state, but does not change working area, nor index, not HEAD.  This is to
be used when encounering stale old rebase / am / cherry-pick / revert.

BTW. I think that '--clear' (or '--clear-state') would be a better name
for this option.
 
Other than that I think I agree with the reasoning (and I think I too had
encountered the irritation with the "sequencer state").
-- 
Jakub Narębski

Re: [PATCH 1/3] revert: rename --reset option to --quit

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:52:30

Jakub Narebski wrote:
Actually from what I understand --reset / --quit has to have different
meaning than --abort.
Right.  I'll send a strawman series that introduces a "cherry-pick
--abort" option soon to clarify this.

[...]
BTW. I think that '--clear' (or '--clear-state') would be a better name
for this option.
Could you explain why?  When I run "git cherry-pick --clear", I'd
expect that it removes some files.  Problems:

 (1) It's not clear to the novice _which_ files it will remove.  Maybe
     ".rej" files or something?

 (2) That the sequencer state is stored in files is an implementation
     detail.
quoted
Other than that I think I agree with the reasoning (and I think I too had
encountered the irritation with the "sequencer state").
Thanks for the quick feedback, both of you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help