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 230420 - There should be a Show Changes Button on the Git Window
Summary: There should be a Show Changes Button on the Git Window
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 06:41 UTC by doliver3
Modified: 2013-06-01 02:52 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description doliver3 2013-05-29 06:41:34 UTC
Since the GIT window does not show changes like it should unless you pick the menu option to Show Changes, there should really be a button on the Git Window. 

I thought the Refresh button would do this but unfortunately it does not. 

Of course when I open the GIT window I want to see the list of all modified or added or deleted files - Why Netbeans does not do this automatically I do not know but could you make it more convenient and appropriate by putting a button near the refresh button to Show Changes ? 

Thanks
Comment 1 Ondrej Vrabec 2013-05-29 07:36:55 UTC
What are you actually asking for? Do you want a button in the window that would change the current window's context (e.g. from the previously selected project) to the one you have just selected (currently selected project)?
Comment 2 doliver3 2013-06-01 02:52:03 UTC
Hey thanks for asking.  No, that is not exactly what I was looking for. 

I guess what I was proposing was a convenient and more obvious way to ensure that the Git Window tracks all the changes of all the files in the project - and it should start working and doing this as soon as I load a GIT project into Netbeans even if the GIT project was not a Netbeans project before I import it.  A button seemed convenient - but anything to make it more obvious would be fine. 

I look at that netbeans Git window as the equivalent of the git status command. When I use git status on the command line, I never have to wonder whether git will pickup and list all the files that have changed or have been added.  When in Netbeans and the GIt status window does not track and show all the changes I know I have just made and saved, that is really frustrating and it appears broken. 

==========
What I did the other day was to load in a new project that pointed to an exiting codebase that had a .git directory in it already so it was an initialized .git project just not netbeans yet. I then made it a Netbeans project. 

Then after making it a Netbeans project I just started to make some edit changes in some of the files.  I did see that netbeans sidebar highlighting showed changes were being registered as changes and I clicked save on the files.  The GIT Show Changes window labeled Git was already open because the workspace had previously already had a GIT project. 

However, the GIT window (not the Git Repository Window) - the window labeled Git - projectname - branch  was not showing any changes I was making in the files even when I hit the refresh button.  I right-clicked on a particular file and chose diff - then the Git window would track and show changes only to that file but not other files in the project. 

In any case, it looks like if I right-click on the very top of my project and choose "Git...Show Changes" at that top level and then reboot Netbeans, Netbeans starts properly noticing Git changes to all my files being tracked in GIT.  

So maybe I really just want this bug in not recognizing all the files and changes to those files in the Git change window in a project initially fixed.  I don't know why when there is one GIT project Netbeans would not just recognize this and start tracking all changes to any file in the GIT window. .  It took me quite a long time to realize that the magic association to make changes show up in the GIT window was to right-click...Git...Show Changes and then restart netbeans. 

I don't think Netbeans properly recognized my remote branch I push to initially either - I had to re-choose it. 

Oh, and I won't open up a separate issue for now, but I think you should get rid of the separate box for username in the GIT push setup dialog - I need the userID part before the @ sign in there - it needs to push to that remotely, it is not right that the dialog strips off the username by default when setting up a GIT project then when my project tries to push to the server without a username it fails. I need to username to remain in the remote connection. The username before the @ sign should remain otherwise it doesn't push properly --gitolite@mysever.com:mycodeproject. I often have to go back in and put the username back in for it to push properly.