From a2aafb984ce6c8f4094a3aea4f32166bd040b3c2 Mon Sep 17 00:00:00 2001 From: arookieofc Date: Thu, 12 Nov 2026 10:39:10 +0800 Subject: [PATCH] fix(vcs): don't flag files as modified when only exec bit changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- crates/ide-vcs/src/status.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ide-vcs/src/status.rs b/crates/ide-vcs/src/status.rs index 29438195b4..439762642a 100644 --- a/crates/ide-vcs/src/status.rs +++ b/crates/ide-vcs/src/status.rs @@ -125,6 +125,9 @@ fn gix_status(r: &Repo, ignored: &IgnoredNames) -> IdeResult { 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,