Community
Participate
Working Groups
If HEAD is detached, the corresponding Repository node is rendered in the form <repo> - <repo path> [293bf13355d4d552f514386ac3690604930162f5] (simply showing the commit SHA-1). Instead, it should be rendered in the same way as the label decorator for the project: <repo> - <repo path> [293bf13... (refs/tags/v0.8.4)] by doing a "best guess" about which remote tracking branch or tag points to that commit. The logic for this can be found in RepositoryUtil.mapCommitToRef(). I wonder whether we need to rethink the caching logic of this, though... We should also make sure to have the "shorten SHA-1" logic in a central place so that we can replace it with JGits logic eventually instead of the hard-coded length of 8.
Ideally the logic should be in JGit imho
Please check if the logic to map a commit to refs could be moved to JGit.
The title no longer applies, it is now shown correctly in the repo view. The logic is still in EGit though. I don't know if it could be easily moved to JGit, because it uses a cache for some things (but not when using the reflog, strangely). Let's close this until someone wants to work on this.