Bug 407602 - Running "git stash ; git stash pop" clears bookmarks in modified files
Summary: Running "git stash ; git stash pop" clears bookmarks in modified files
Status: RESOLVED DUPLICATE of bug 448655
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-16 14:46 UTC by nfxjfg
Modified: 2022-10-03 20:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nfxjfg 2019-05-16 14:46:42 UTC
SUMMARY

Running "git stash" to remove something, testing something, and then "git stash pop" (all even without necessarily returning to the editor) can be common during development. Unfortunately, if bookmarks are set on any modified lines (and other lines), the bookmark is removed as kate refreshes due to the "git stash".

This is a regression since kate has changed to always reload files managed by git without user interaction. If my memory doesn't trick me, before this change you could just not reload the files until you've run "git stash pop".

STEPS TO REPRODUCE
1. Open a file managed by git
2. Add a new line with some text, set a bookmark on it
3. Also set a bookmark on a line after the new one
4. Run "git stash"
5. Run "git stash pop"

OBSERVED RESULT
The bookmarks disappear in step 4.

EXPECTED RESULT
The bookmarks don't disappear, or reappear after step 5.
Comment 1 Waqar Ahmed 2022-10-03 20:05:56 UTC
*** This bug has been marked as a duplicate of bug 448655 ***