Bug 346929

Summary: Projects Plugin Doesn't Update <untracked>
Product: [Applications] kate Reporter: Robert Charbonneau <etriaph>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: christoph, codestruct
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Robert Charbonneau 2015-04-30 03:14:50 UTC
Opening a project that has files that are untracked by Git does not update the display of those files once they are added to Git, committed and pushed.  This is even after hitting the refresh button for the project.  See 'Additional Information' for how Git was used while Kate was running.

Reproducible: Always

Steps to Reproduce:
1. Open a tracked file in the project.
2. Create a new source file on disk.
3. Add this file to tracked sources for this Git repository.
4. Commit the changes.
5. Push the source file to the repository.
6. Open the source file to see it under '<untracked>'

Actual Results:  
The file displays as being untracked even after hitting the refresh button for the project.

Expected Results:  
Changes in the state of the source file in Git should be reflected in the UI.

{ user@host: ~/Projects/Rails/my_gem/app/models/my_gem }$ git add base.rb
{ user@host: ~/Projects/Rails/my_gem/app/models/my_gem }$ git commit
[master b17ff48] Base class for our models.
 1 file changed, 6 insertions(+)
 create mode 100644 app/models/my_gem/base.rb
{ user@host: ~/Projects/Rails/my_gem/app/models/my_gem }$ git push origin master
Username for 'https://github.com': git_userme   
Password for 'https://git_userme@github.com': 
Counting objects: 6, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 601 bytes | 0 bytes/s, done.
Total 6 (delta 2), reused 0 (delta 0)
To https://github.com/git_userme/my_gem.git
   214af73..b17ff48  master -> master
{ user@host: ~/Projects/Rails/my_gem/app/models/my_gem }$
Comment 1 Gregor Mi 2018-04-19 14:06:13 UTC
I also find myself struggling with strange behaviour of the Untracked files. I don't know if it the same as you described; I will try that out and report back.
Comment 2 Christoph Cullmann 2018-07-14 14:38:39 UTC
We don't watch actively for changes, as git isn't that happy with concurrent accesses to the same repo.

But for me that works fine, after hitting the reload, as designed.
Then the files vanish from untracked and are displayed as part of the project.

I use that in this way daily ;=)