https://bugs.kde.org/show_bug.cgi?id=388186

--- Comment #2 from nfx...@gmail.com ---
Reproduces with kate 20.08.2, Kate Part 5.74.0.

Here's a potentially better reproduction:

First make sure the project plugin is enabled. Enable "Warn about files being
modified by foreign processes" in the kate general options.

Step 1, run this in bash:

mkdir /tmp/gittest
cd /tmp/gittest
git init .
echo "a" > foo1.txt
echo "b" > foo2.txt
git add foo*
git commit -m "c1"
git checkout -b branch2
echo "c" > foo3.txt
echo "d" > foo4.txt
git add foo*
git commit -m "c2"

Step 2: open foo1.txt in bash. The "Projects" tab will now list the files
foo1.txt to foo4.txt.

Step 3: open all files. Click on foo1.txt to foo4.txt in the "Projects" file
list. They will show what was written to them by the shell commands.

Step 4: run "git checkout master" in the shell. Kate will tell you that
foo3.txt and foo4.txt will be deleted. Click "Reload".

Step 5: confirm file contents and click foo4.txt down to foo1.txt in the
"Projects" file list. foo4.txt and foo3.txt are empty.

Step 6: run "git checkout branch2". You will notice that kate neither notifies
nor reload anything. If you click on foo3.txt and foo4.txt, they are still
shown as empty. You can do "File->Reload All", and the expected file contents
fill show up properly.

I've tested this with the kate version mentioned above. For my private use, I'm
using a hacked kate version from 2017, which does not have this problem.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to