Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Doesn't refresh history after deleting local branch(GUI problem?)
Doesn't refresh history after deleting local branch [message #1860867] Wed, 06 September 2023 14:56 Go to next message
Eclipse UserFriend
Fig A shows the alt-hist-01 branch has 2 local commits. This branch was pushed to the remote then the Remote Tracking branch was deleted (branch still on remote).

Fig B shows I activated a different branch (test-01) then right clicked the local alt-hist-01 branch and selected Delete Branch then pressed the Delete button in the confirmation window.

Fig C shows the 2 commits of the deleted branch are still visible in the History view.

In Fig D, I selected a different branch (didn't activate) and those 2 commits disappeared. The History graph now looks correct. Does Fig C indicate a GUI refresh problem?

EGit Version 6.5.0.2023
index.php/fa/43484/0/
Re: Doesn't refresh history after deleting local branch [message #1860918 is a reply to message #1860867] Fri, 08 September 2023 14:15 Go to previous message
Eclipse UserFriend
The history view did refresh: the deleted branch alt-hist-01 is no longer shown. If the current selection in Eclipse refers to a commit, the history view tries to keep this currently selected commit. Commit aea5160 was selected when the branch was deleted, and thus it is still included in the history, even though it's no longer reachable through HEAD or any existing branch.

When then one of the other branches is selected, the selection changes to commit 652766a, and thus aea5160 is no longer a starting point for getting the history, and since aea5160 is not reachable from HEAD (which is at test-01) or from any other branch, it disappears.

It may look like a small UI bug, but actually it's quite convenient: if the branch was deleted by mistake, it can simply be re-created in the history view. Otherwise the user would have to hunt for the commit in the reflog, and re-create the branch there.
Previous Topic:KeyExchangeFactories not set
Next Topic:Always getting 'remote hung up unexpectedly' when cloning eclipse.platform.ui over ssh
Goto Forum:
  


Current Time: Tue May 13 22:58:23 EDT 2025

Powered by FUDForum. Page generated in 0.03820 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top