Bug 479502

Summary: "Auto reload files in version control" setting does not work with "git reset --hard HEAD"
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: george fb <georgefb899>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 5.113.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description george fb 2024-01-07 14:51:00 UTC
SUMMARY
`git reset --hard HEAD` deletes and creates a new file so `Auto reload files in version control` doesn't work.

STEPS TO REPRODUCE
1. Open git project in Kate (righ click folder and open in Kate)
2. Open files
3. Edit and save the files
4. `git reset --hard HEAD`
5. Go back to Kate

OBSERVED RESULT
Inline mesage appears telling me the files changed and asking what to do

EXPECTED RESULT
Files are reloaded

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240104
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.12
Kernel Version: 6.6.9-1-default (64-bit)
Graphics Platform: Wayland