| Summary: | Undo from Git history | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Rene Horn <the.rhorn> |
| Component: | general | Assignee: | Waqar Ahmed <waqar.17a> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | lassi.vaatamoinen, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/kate/-/commit/2feefe9b87e88aa528c6cc8ad10988a4469edef2 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Rene Horn
2024-06-26 18:39:41 UTC
>Undo function could be used to undo the changes from the last Git commit to the file that's currently open on the current branch You can open the file using "Open at HEAD" to see what the unchanged file looks like. Then you could save it as the file you have been modifying. https://kate-editor.org/post/2023/2023-02-01-using-kate-git-support/ A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1547 One way to see the last commit would be to use the "Open Commit..." action (search for it in the command bar or access via the hamburger menu in git toolview). However currently there is no way to see the last commit quickly. I will make some changes to the dialog to allow this. Git commit 2feefe9b87e88aa528c6cc8ad10988a4469edef2 by Waqar Ahmed. Committed on 26/07/2024 at 19:39. Pushed by waqar into branch 'master'. Improve open commit dialog The old one sucked and was too small. This one is a bit bigger and allows you to show the last commit using a button M +34 -5 addons/project/gitwidget.cpp https://invent.kde.org/utilities/kate/-/commit/2feefe9b87e88aa528c6cc8ad10988a4469edef2 Git commit cd40b5f43ec4a2621c2f52e4fe469af5cdb3373b by Waqar Ahmed. Committed on 26/07/2024 at 19:39. Pushed by waqar into branch 'master'. Allow "HEAD" when opening commit M +1 -1 apps/lib/commitfilesview.cpp https://invent.kde.org/utilities/kate/-/commit/cd40b5f43ec4a2621c2f52e4fe469af5cdb3373b Git commit d5885e36a64948747eb4034b113affb4f8b28275 by Waqar Ahmed. Committed on 31/07/2024 at 10:21. Pushed by waqar into branch 'release/24.08'. Allow "HEAD" when opening commit (cherry picked from commit cd40b5f43ec4a2621c2f52e4fe469af5cdb3373b) M +1 -1 apps/lib/commitfilesview.cpp https://invent.kde.org/utilities/kate/-/commit/d5885e36a64948747eb4034b113affb4f8b28275 |