zed/crates/git/src
Dino 0a436bec17
git: Introduce restore and next action (#50324)
Add a `git::RestoreAndNext` action that restores the diff hunk at the
cursor and advances to the next hunk. In the git diff view, the default
restore keybinding (`cmd-alt-z` on macOS, `ctrl-k ctrl-r` on
Linux/Windows) is remapped to this action so users can quickly restore
hunks in sequence. Also refactor `go_to_hunk_before_or_after_position`
to accept a `wrap_around` parameter, eliminating duplicated
hunk-navigation logic in `do_stage_or_unstage_and_next` and
`restore_and_next`.

Release Notes:

- Added a `git: restore and next` action that restores the diff hunk at
  the cursor and moves to the next one. In the git diff view, the
  default restore keybinding (`cmd-alt-z` on macOS, `ctrl-k ctrl-r` on
  Linux/Windows) now triggers this action instead of `git: restore`.

---------

Co-authored-by: Afonso <4775087+afonsograca@users.noreply.github.com>
2026-03-09 10:50:43 +00:00
..
blame.rs git: Add trusted worktree support to git integrations (#50649) 2026-03-04 12:19:13 +00:00
checkpoint.gitignore agent: Don't track large and common binary files (#31352) 2025-05-26 11:31:25 +00:00
commit.rs git: Add trusted worktree support to git integrations (#50649) 2026-03-04 12:19:13 +00:00
git.rs git: Introduce restore and next action (#50324) 2026-03-09 10:50:43 +00:00
hosting_provider.rs git: Use CDN endpoint for GitHub avatars to avoid rate limiting (#47894) 2026-01-31 13:49:42 -05:00
remote.rs Add support for git remotes (#42819) 2025-12-04 14:23:36 +01:00
repository.rs git: Allow committing in restrictive worktrees (#50749) 2026-03-04 21:37:25 +00:00
stash.rs git: Add git stash picker (#35927) 2025-09-12 14:45:38 -04:00
status.rs git: Move diff num stat calculation to repository snapshot layer (#50645) 2026-03-04 18:54:23 +00:00