дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
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
Цей коміт міститься в:
1 джерело
0780171704
коміт
a2aafb984c
1 file changed
+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,
|
||||
|
||||
Reference in new issue
Заблокувати користувача