This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221662

Summary: Graph visualization of repository history (log)
Product: versioncontrol Reporter: j.boesl
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: CLOSED INVALID    
Severity: normal CC: chrizzly, Fhamtaom, git, jalgaba, markiewb, Saljack, terje7601, todorst, xkr
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Simple integration draft of the graphical commit browser from nbgit
patch draft in action

Description j.boesl 2012-11-07 15:49:43 UTC
Merging branches is difficult without seeing relationship between those branches. The old nbgit plugin did already provide that feature.
Comment 1 markiewb 2012-12-17 21:54:02 UTC
Created attachment 129480 [details]
Simple integration draft of the graphical commit browser from nbgit

I want this feature too, so i tried to figure it out. 

But have a look at [1]. JGit (in its latest version 2.1.x) still offers a graphical view out of the box. And nbgit integrated it years ago. 

My patch is a simple draft which shows the jgit commitgraph pane in a topcomponent. I think the package org.nbgit.ui.browser could be extracted from the nbgit project and used within NB to provide such a feature.

What changes introduces the patch?
* added simple action which opens the BrowserTopComponent
* BrowserTopComponents adds a lookup-listener for Nodes and repaints itself

How to use?
* checkout nbgit from [2]
* remove some obsolete dependencies like jsch
* apply patch
* run the target IDE
* disable the official git plugin
* restart
* enable the nbgit plugin
* restart
* open a git-versioned project
* select a file/dir node in the project view
* Menu "File -> Show commit graph" (-> TC Commit graph opens and shows some graphs)
* select a different file/dir node in the project view -> TC gets updated

(NOTE: nbgit is made obsolete by the offical NB git support, so still uses the very old jgit lib 0.8.x. FYI NB uses 1.x, JGit is currently at 2.1.x)  
[1] http://wiki.eclipse.org/JGit/User_Guide#Graphical_History_View
[2] https://code.google.com/p/nbgit/
Comment 2 markiewb 2012-12-17 21:55:01 UTC
Created attachment 129481 [details]
patch draft in action
Comment 3 Ondrej Vrabec 2014-06-26 11:40:30 UTC
*** Bug 245256 has been marked as a duplicate of this bug. ***
Comment 4 Ondrej Vrabec 2014-07-08 10:36:45 UTC
i agree this would be useful but instead of having another history window next to the usual search history view, the graph should be somehow merged into the current history view. I am willing to help with it but i will not make it alone (at least not in a near future).
Comment 5 Christian Lenz 2014-08-12 14:19:05 UTC
Would like to have this too, I see it in intelliJ: http://blog.jetbrains.com/idea/2011/11/git-log-gets-more-power/


Regards

Chris
Comment 6 hifi 2014-10-01 07:29:44 UTC
+1, the IntelliJ screenshot posted looks fairly well done to visualize the history. This is one of the things that makes it hard to track your branch relations without using an external tool.

When using 'git flow' you have a lot of shared branching between co-workers and visualization is very important to keep track of the development process.
Comment 7 Christian Lenz 2015-10-23 11:40:13 UTC
Any news for this? I saw it in eclipse too.
Comment 8 Christian Lenz 2019-06-28 10:54:13 UTC
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-2768. Please discuss it there for further information.