After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720729 - Show detached head in the commit list
Show detached head in the commit list
Status: RESOLVED FIXED
Product: gitg
Classification: Applications
Component: gitg
git master
Other All
: Normal normal
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks:
 
 
Reported: 2013-12-19 10:25 UTC by Techlive Zheng
Modified: 2013-12-26 15:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Show detached head in the commit list (732 bytes, patch)
2013-12-19 10:25 UTC, Techlive Zheng
none Details | Review
Show detached head in the commit list (785 bytes, patch)
2013-12-25 04:36 UTC, Techlive Zheng
accepted-commit_now Details | Review

Description Techlive Zheng 2013-12-19 10:25:40 UTC
We should be able to see the diff while in the middle of a rebasing.
Comment 1 Techlive Zheng 2013-12-19 10:25:42 UTC
Created attachment 264524 [details] [review]
Show detached head in the commit list
Comment 2 jessevdk@gmail.com 2013-12-19 10:32:00 UTC
Review of attachment 264524 [details] [review]:

Don't you get duplicate entries when HEAD is an actual branch (like master)?
Comment 3 Techlive Zheng 2013-12-19 10:37:21 UTC
Nope, no duplicate entries.
Comment 4 Techlive Zheng 2013-12-21 17:07:39 UTC
See branch wip/techlivezh/shoe-detached-head
Comment 5 jessevdk@gmail.com 2013-12-23 09:33:11 UTC
Ah ok, I was missing some context there. So still, this will result in duplicate references to check for libgit2 (in the end), which doesn't look clean (it's also not straightforward to understand why you would also need to add head() still). So, please add a condition on repo.is_head_detached() before adding it to d_all.
Comment 6 Techlive Zheng 2013-12-23 09:34:47 UTC
(In reply to comment #5)
> Ah ok, I was missing some context there. So still, this will result in
> duplicate references to check for libgit2 (in the end), which doesn't look
> clean (it's also not straightforward to understand why you would also need to
> add head() still). So, please add a condition on repo.is_head_detached() before
> adding it to d_all.

Yeah, make sense, will see if this can be improved.
Comment 7 Techlive Zheng 2013-12-25 04:36:31 UTC
Created attachment 264868 [details] [review]
Show detached head in the commit list
Comment 8 jessevdk@gmail.com 2013-12-26 10:52:52 UTC
Review of attachment 264868 [details] [review]:

Go ahead
Comment 9 Techlive Zheng 2013-12-26 15:54:41 UTC
Landed in commit c1757df