fix(vcs): don't flag files as modified when only exec bit changed

gix reports WtChange::Modification with content_change=None when only the
executable bit differs — the file's content is identical. These were shown
as modified in the Changes tree but had no diff to display.

Filter them out: no content change means no VCS change to show.

Closes #2853
Цей коміт міститься в:
arookieofc committed 2026-11-12 18:11:45 +08:00
1 джерело 0780171704
коміт a2aafb984c
1 file changed
+3
+3
Переглянути файл
@@ -125,6 +125,9 @@ fn gix_status(r: &Repo, ignored: &IgnoredNames) -> IdeResult<Entries> {
ChangeKind::Conflicted
}
EntryStatus::Change(WtChange::Removed) => ChangeKind::Deleted,
// `content_change` is `None` when only the executable bit
// changed — git reports no content diff, so neither do we.
EntryStatus::Change(WtChange::Modification { content_change: None, .. }) => continue,
EntryStatus::Change(_) => ChangeKind::Modified,
EntryStatus::IntentToAdd => ChangeKind::Added,
EntryStatus::NeedsUpdate(_) => continue,