elementary / elementary/code

Git status not updated when new file created or deleted until Code restarts

Open
#986 0 comments 0 reactions 0 assignees View on GitHub
Priority: Low
Dominant language
Vala
Stars
521
Forks
118
Avg merge
1d 8h
Merged PRs (30d)
14

Description

## What Happened
A new file was created in a git repository, in src using the sidebar. The file was not marked with the git untracked icon as expected but the parent folder was. Code was restarted - the correct icon was shown on the file. The new file was deleted with the sidebar The file disappeared in Code, as expected but the parent folders remained marked with the "new" icon. Until Code was restarted or the project reloaded.

## Expected Behavior
All related git status icons should be updated when a new file is created or deleted,

## Platform Information
Elementary 6 daily

Contributor guide

Open the contributing guide

Research direction

Reproduce this in a Git repository by creating and deleting a file through the sidebar, then compare the status icons before and after restarting or reloading the project. Trace the Git status refresh used by the sidebar; done means file and parent-folder icons update immediately after both operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.