Skip to content

Previous branch switching support for move command#50

Merged
joseluisq merged 1 commit intomasterfrom
move-previous-branch
Mar 18, 2023
Merged

Previous branch switching support for move command#50
joseluisq merged 1 commit intomasterfrom
move-previous-branch

Conversation

@joseluisq
Copy link
Owner

@joseluisq joseluisq commented Mar 18, 2023

This PR adds previous branch switching support to the move command.

Shorthand variant:

move -

Option variants:

move -p
# or
move --prev

Notes

  • Previous branch switching only works via the move command. E.g if you switched to a branch using git checkout ... manually, then move - will lose track of the previous branch.
  • When switching move uses the --no-apply-stash option by default.

More details via move -h

It resolves #35

variants:

~> move -p
~> move --prev
~> move -

resolves #35
@joseluisq joseluisq added the enhancement New feature or request label Mar 18, 2023
@joseluisq joseluisq self-assigned this Mar 18, 2023
@joseluisq joseluisq changed the title Previous branch switching for move command Previous branch switching support for move command Mar 18, 2023
@joseluisq joseluisq merged commit 4fb84fd into master Mar 18, 2023
@joseluisq joseluisq deleted the move-previous-branch branch March 18, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support to previous branch shorthand

1 participant