ZIm/crates/git/src
Max Brunsfeld 74a39c7263
Make FakeGitRepository behave more like a real git repository (#26961)
This PR reworks the `FakeGitRepository` type that we use for testing git
interactions, to make it more realistic. In particular, the `status`
method now derives the Git status from the differences between HEAD, the
index, and the working copy. This way, if you modify a file in the
`FakeFs`, the Git repository's `status` method will reflect that
modification.

Release Notes:

- N/A

---------

Co-authored-by: Junkui Zhang <364772080@qq.com>
2025-03-19 16:04:27 +00:00
..
blame.rs Git on main thread (#26573) 2025-03-12 19:39:30 +00:00
commit.rs Git on main thread (#26573) 2025-03-12 19:39:30 +00:00
git.rs Make FakeGitRepository behave more like a real git repository (#26961) 2025-03-19 16:04:27 +00:00
hosting_provider.rs Add an undo button to the git panel (#24593) 2025-02-12 15:57:08 -07:00
remote.rs Detect wider variety of usernames for SSH-based remotes (#21508) 2024-12-05 15:23:37 -08:00
repository.rs Make FakeGitRepository behave more like a real git repository (#26961) 2025-03-19 16:04:27 +00:00
status.rs Improve when the commit suggestions would show (#26313) 2025-03-07 23:33:48 +00:00