ZIm/crates/git_ui/src
Arseny Kapoulkine 0ed6b4ef1a
git_ui: Add collapse_untracked_diff settings to improve usability for untracked files (#32591)
In repositories with untracked files that are not intended to be added,
showing the expanded diffs in the panel is confusing, as it places the
changes side by side with changes in tracked files.

This change adds a setting, collapse_untracked_diff, that can be enabled
to collapse untracked diffs by default when the panel is opened.

See
https://github.com/zed-industries/zed/pull/31855#issuecomment-2957547018
(and previous comment for examples of why this is useful).

Example before this change, or with the setting in its default state:


![image](https://github.com/user-attachments/assets/f974c849-7ebf-424e-9397-442a6cc2513b)

Example after this change with the setting set to `true`:


![image](https://github.com/user-attachments/assets/bd8934f5-bd9a-4f5a-b723-cd4b798d2c2c)

Release Notes:

- Git: Added `collapse_untracked_diff` setting to auto-collapse
untracked diffs
2025-06-22 00:38:24 +03:00
..
askpass_modal.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
blame_ui.rs editor: Move blame popover from hover_tooltip to editor prepaint (#29320) 2025-04-25 01:52:24 +05:30
branch_picker.rs editor: Improve code completion filtering to provide fewer and more accurate suggestions (#32928) 2025-06-18 16:01:28 +05:30
commit_message_prompt.txt git_ui: Try to prompt the model out of including the diff output (#26281) 2025-03-07 15:05:35 +00:00
commit_modal.rs Use git config --global user.email for email address in automatic Co-authored-by (#32624) 2025-06-12 19:39:08 +00:00
commit_tooltip.rs editor: Move blame popover from hover_tooltip to editor prepaint (#29320) 2025-04-25 01:52:24 +05:30
commit_view.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
conflict_view.rs Refine styling of merge conflicts (#31012) 2025-06-09 19:03:19 +00:00
diff_view.rs Diff view (#32922) 2025-06-18 14:43:23 +00:00
git_panel.rs Fix diff indicators not restored when reopening remote project (#31384) 2025-06-17 10:07:51 -04:00
git_panel_settings.rs git_ui: Add collapse_untracked_diff settings to improve usability for untracked files (#32591) 2025-06-22 00:38:24 +03:00
git_ui.rs Diff view (#32922) 2025-06-18 14:43:23 +00:00
onboarding.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
picker_prompt.rs editor: Improve code completion filtering to provide fewer and more accurate suggestions (#32928) 2025-06-18 16:01:28 +05:30
project_diff.rs git_ui: Add collapse_untracked_diff settings to improve usability for untracked files (#32591) 2025-06-22 00:38:24 +03:00
remote_output.rs git: Pick which remote to fetch (#26897) 2025-06-06 11:28:07 -04:00
repository_selector.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00