Skip to content
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

Support "-" as a target for gg update #111

Open
zombiezen opened this issue Aug 17, 2019 · 1 comment
Open

Support "-" as a target for gg update #111

zombiezen opened this issue Aug 17, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@zombiezen
Copy link
Member

git checkout allows the user to switch back to the previous ref using a shorthand of git checkout - (docs). It can be implemented by rewriting the revision to @{-1}.

@zombiezen zombiezen added the enhancement New feature or request label Aug 17, 2019
@zombiezen zombiezen added this to the 1.0 milestone Aug 17, 2019
@zombiezen
Copy link
Member Author

One wrinkle here: the fast-forwarding behavior of gg update causes the reflog to have a detached head for an entry in the reflog. Perhaps we need to find a way to remove the reflog entry?

@zombiezen zombiezen modified the milestones: 1.0, 1.1 Jun 18, 2020
@zombiezen zombiezen removed this from the 1.1 milestone Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant