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 228845 - Revert modifications of .gitignore file does not update file's status
Summary: Revert modifications of .gitignore file does not update file's status
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: Ondrej Vrabec
Depends on:
Reported: 2013-04-22 11:04 UTC by everflux
Modified: 2013-04-22 11:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2013-04-22 11:04:26 UTC
Product Version: NetBeans IDE 7.3.1 (Build 201304162201)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11

I have a maven based git version controlled project.

Add new javascript file, use "newjavascript" as name.
write "asdf" in the file.
Team -> show changes, "newajavascript.js" appears in green.
Select file.
Team -> git -> ignore, file disappears.
Editor open, title turns gray "newjavascript.js [i]"
Verify: Right click on project, git->commit, only ".gitignore" is changed/blue

Team -> Revert -> Revert modifications, select "remove also new files and folders"

Editor stills open with "newjavascript [i]"

Right click on project: git->commit, "newjavascript.js" in green, status "added".

If I now do again the "team->revert->revert modifications" the file is correctly removed.
Comment 1 Ondrej Vrabec 2013-04-22 11:39:15 UTC
The reason is different. By Revert Modifications you revert the change in .gitignore file and this change is not reflected in the IDE: the status of the ignored file is not automatically refreshed.