Summary: | Untracked empty folders in a git repo are wrongly shown with the 'up-to-date' icon | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Kishore Gopalakrishnan <kishore96> |
Component: | plugins: git | Assignee: | Sebastian Dörner <sebastian> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aldo.latino, ivan, kfm-devel, shubhamarora |
Priority: | NOR | ||
Version: | 21.12.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/sdk/dolphin-plugins/-/commit/29a6aff76d1a4dc9b236b75b359d4e97d2d0b987 | Version Fixed In: |
Description
Kishore Gopalakrishnan
2021-12-26 08:58:04 UTC
Ooops, forgot the summary SUMMARY When a git repo contains an empty (untracked) folder, Dolphin wrongly shows it with the 'green tick' icon that is used to signify tracked files/folders that have no uncommitted changes. I confirm this bug also in Plasma 6.0.1 I confirm this bug also in Debian 12 Bookworm, KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.0-18-amd64 Debian package name: dolphin-plugins, Version: 22.12.3-1 A possibly relevant merge request was started @ https://invent.kde.org/sdk/dolphin-plugins/-/merge_requests/72 Git commit 29a6aff76d1a4dc9b236b75b359d4e97d2d0b987 by Nikolai Krasheninnikov. Committed on 28/05/2024 at 14:34. Pushed by nikolaik into branch 'master'. git: untracked empty dirs are no longer shown as versioned As git can't add empty dirs, they don't show up in `git status`. We can get this list from `git ls-files`. This list is overlapping with `git status` but we can't gain all info from just one command. So we use both. M +10 -1 git/fileviewgitplugin.cpp M +23 -0 git/gitwrapper.cpp M +10 -0 git/gitwrapper.h https://invent.kde.org/sdk/dolphin-plugins/-/commit/29a6aff76d1a4dc9b236b75b359d4e97d2d0b987 |