Skip to content

Wip/fix  continue/ skip in synopsis #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

phillipwood
Copy link

Show --continue/--skip consistently in the documentation synopsis and help printed with -h

r1walz and others added 8 commits June 16, 2019 10:36
In the case of merge conflicts, while performing a revert, we are
currently advised to use `git cherry-pick --<sequencer-options>`
of which --continue is incompatible for continuing the revert.
Introduce a separate advice message for `git revert`. Also change
the signature of `create_seq_dir` to handle which advice to display
selectively.

Signed-off-by: Rohit Ashiwal <[email protected]>
We are on a path to teach cherry-pick/revert how to skip commits. To
achieve this, we could really make use of existing functions.
reset_for_rollback is one such function, but the name does not
intuitively suggest to use it to reset a merge, which it was born to
perform, see 539047c ("revert: introduce --abort to cancel a failed
cherry-pick", 2011-11-23). Change the name to reset_merge to make
it more intuitive.

Signed-off-by: Rohit Ashiwal <[email protected]>
git am or rebase have a --skip flag to skip the current commit if the
user wishes to do so. During a cherry-pick or revert a user could
likewise skip a commit, but needs to use 'git reset' (or in the case
of conflicts 'git reset --merge'), followed by 'git (cherry-pick |
revert) --continue' to skip the commit. This is more annoying and
sometimes confusing on the users' part. Add a `--skip` option to make
skipping commits easier for the user and to make the commands more
consistent.

In the next commit, we will change the advice messages and some tests
hence finishing the process of teaching revert and cherry-pick
"how to skip commits".

Signed-off-by: Rohit Ashiwal <[email protected]>
The previous commit introduced a --skip flag for cherry-pick and
revert. Update the advice messages, to tell users about this less
cumbersome way of skipping commits. Also add tests to ensure
everything is working fine.

Signed-off-by: Rohit Ashiwal <[email protected]>
The synopsis for am shows the command mode options as
    (--continue | --skip | --abort | --quit)
They are on a single line and in parenthesis as they are not
optional. Fix the merge and rebase docs to match this style.

Signed-off-by: Phillip Wood <[email protected]>
---
This patch is based on top of nd/merge-quit.
The docs for cherry-pick/revert are updated to this style by
https://public-inbox.org/git/[email protected]/T/#u
Show a similar synopsis for --continue/--skip etc. in the help printed
with -h as in the man pages.

Signed-off-by: Phillip Wood <[email protected]>
Show --continue/--skip etc. in a consistent order at the top of the help
printed by -h.

Signed-off-by: Phillip Wood <[email protected]>
@phillipwood phillipwood force-pushed the wip/fix --continue/--skip in synopsis branch from 52cb390 to 806f7ac Compare June 16, 2019 15:17
Show --continue, --skip, --abort and --quit in that order in the
docs. This commit reorders those commands but does not move them to the
top like the last one.

Signed-off-by: Phillip Wood <[email protected]>
@dscho
Copy link
Member

dscho commented Jun 27, 2019

@phillipwood maybe you want to use a PR base branch other than master?

@phillipwood phillipwood deleted the wip/fix --continue/--skip in synopsis branch August 12, 2021 13:35
@phillipwood phillipwood restored the wip/fix --continue/--skip in synopsis branch August 15, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants