8000 Add RestoreStaged to Worktree that mimics the behaviour of git restore --staged <file>... by ben-tbotlabs · Pull Request #343 · go-git/go-git · GitHub
[go: up one dir, main page]

Skip to content

Add RestoreStaged to Worktree that mimics the behaviour of git restore --staged <file>... #343

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

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Add missing info line for the example
  • Loading branch information
Ben Talbot committed Jun 11, 2021
commit de9cbf6f462abc973306ffbd67ac422b5aa6f3cd
1 change: 1 addition & 0 deletions _examples/restore/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func main() {
Info("rm for-delete")
err = os.Remove(filepath.Join(directory, "for-delete"))
CheckIfError(err)
Info("git add for-delete")
_, err = w.Add("for-delete")
CheckIfError(err)

Expand Down
0