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

Undo deprecated? #1180

Open
h0adp0re opened this issue Jan 21, 2025 · 1 comment
Open

Undo deprecated? #1180

h0adp0re opened this issue Jan 21, 2025 · 1 comment

Comments

@h0adp0re
Copy link

Hello! First, thank you for maintaining this plugin, it's part of my daily Git interface.

A feature I frequently rely on is undo_stage_hunk. Recently, it was deprecated with the note "use gitsigns.stage_hunk() on staged signs". I tried to do that but I'm only getting the message "No hunk to stage" in my work buffer. These are my current keymaps:

map({ "n", "v" }, "<leader>hs", gs.stage_hunk, "Stage hunk")
map("n", "<leader>hu", gs.undo_stage_hunk, "Undo stage hunk")

Is the replacement feature not implemented yet? Or is this feature (as-is) going away?

@lewis6991
Copy link
Owner

It is implemented and those keymaps should work. I use it all the time.

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

No branches or pull requests

2 participants