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 - Graph visualization of repository history (log)
Summary: Graph visualization of repository history (log)
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 12 votes (vote)
Assignee: Ondrej Vrabec
: 245256 (view as bug list)
Depends on:
Reported: 2012-11-07 15:49 UTC by j.boesl
Modified: 2019-06-28 10:54 UTC (History)
9 users (show)

See Also:
Exception Reporter:

Simple integration draft of the graphical commit browser from nbgit (10.27 KB, patch)
2012-12-17 21:54 UTC, markiewb
Details | Diff
patch draft in action (58.25 KB, image/png)
2012-12-17 21:55 UTC, markiewb

Note You need to log in before you can comment on or make changes to this bug.
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)  
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:


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: Please discuss it there for further information.