Bug 221662 - Graph visualization of repository history (log)
Graph visualization of repository history (log)
Status: NEW
Product: versioncontrol
Classification: Unclassified
Component: Git
8.1
All All
: P3 with 12 votes (vote)
: TBD
Assigned To: Ondrej Vrabec
issues@versioncontrol
:
: 245256 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-07 15:49 UTC by j.boesl
Modified: 2017-02-03 16:13 UTC (History)
9 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
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
Details

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)  
[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 ChrisLE 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 ChrisLE 2015-10-23 11:40:13 UTC
Any news for this? I saw it in eclipse too.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo