ZIm/crates/git/src
Kirill Bulatov caa0d35b8b
Allow to toggle git hunk diffs (#11080)
Part of https://github.com/zed-industries/zed/issues/4523

Added two new actions with the default keybindings

```
"cmd-'": "editor::ToggleHunkDiff",
"cmd-\"": "editor::ExpandAllHunkDiffs",
```

that allow to browse git hunk diffs in Zed:


https://github.com/zed-industries/zed/assets/2690773/9a8a7d10-ed06-4960-b4ee-fe28fc5c4768


The hunks are dynamic and alter on user folds and modifications, or
toggle hidden, if the modifications were not adjacent to the expanded
hunk.


Release Notes:

- Added `editor::ToggleHunkDiff` (`cmd-'`) and
`editor::ExpandAllHunkDiffs` (`cmd-"`) actions to browse git hunk diffs
in Zed
2024-05-01 22:47:36 +03:00
..
blame.rs Store goldenfiles with trailing newline (#10900) 2024-04-23 19:13:04 +02:00
commit.rs git: Do not log error if repository has no commits (#11163) 2024-04-29 16:00:29 +02:00
diff.rs Allow to toggle git hunk diffs (#11080) 2024-05-01 22:47:36 +03:00
git.rs Add pull requests to git blame tooltip (#10784) 2024-04-19 18:54:20 +02:00
hosting_provider.rs Add avatar support for codeberg in git blame (#10991) 2024-04-30 12:57:10 +02:00
permalink.rs git blame: Display GitHub avatars in blame tooltips, if available (#10767) 2024-04-19 15:15:19 +02:00
pull_request.rs Add pull requests to git blame tooltip (#10784) 2024-04-19 18:54:20 +02:00
repository.rs fs: Move Repository trait into git crate (#10768) 2024-04-19 11:57:17 +02:00