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

revert could remove added file if it's already been committed #59

Open
zombiezen opened this issue Jul 12, 2018 · 0 comments
Open

revert could remove added file if it's already been committed #59

zombiezen opened this issue Jul 12, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@zombiezen
Copy link
Member

Steps to Reproduce

$ gg init
$ touch foo.txt
$ gg add foo.txt
$ gg commit -m "initial commit"
$ touch bar.txt
$ gg add bar.txt
$ gg commit -m "added bar"
$ gg revert -r HEAD~ bar.txt

Expected Behavior

bar.txt is removed from the working copy and the index.

Actual Behavior

bar.txt is removed from the index, but not the working copy. This is fine, since it does not lose any data, but it would be fine to remove it from the working copy.

Version Info

gg built from source at 1ff07cfca9c38805dffd700cb665273f64b62181 on 2018-07-12T22:34:36Z
go: go1.10.3 gc linux/amd64
git version 2.18.0
@zombiezen zombiezen added the enhancement New feature or request label Jul 12, 2018
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