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.
Product Version = NetBeans IDE 7.2 (Build 201207171143) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.7.0_02 Runtime = Java HotSpot(TM) Client VM 22.0-b10 I have two problems with the GIT --> Export Uncommitted Changes. 1. The colors do not appear on the exported page. This feature is working in CVS --> Export Diff Patch 2. Sometimes the export is exporting all lines not just the uncommitted changes. I'am fixing the problem by restating IDE. Roman
Created attachment 126159 [details] IDE log
Comment on attachment 126159 [details] IDE log ffff
> 1. The colors do not appear on the exported page. > This feature is working in CVS --> Export Diff Patch What colors? Make a screenshot to demonstrate your problem. > 2. Sometimes the export is exporting all lines not just the uncommitted changes. Do you mean that the change in the generated patch is: all file's content removed and the added again? As all lines appear with '-' first and then the same lines are generated with '+'? Again, make a screenshot or attach the generated patch. Probably the change is in different line-endings.
Created attachment 126197 [details] export from GIT
Created attachment 126198 [details] export from CVS
I've attached exports from GIT and CVS. Today the colors appear on the export from GIT. The GIT export file has to have .patch extension then the colors appear. Please compare the exports. I just added a single line to the code. GIT exported everything compare to CVS export. Roman
(In reply to comment #6) > The GIT export file has to have .patch extension then the colors appear. Sure, all diff/patch files need to have a proper extension to be colored (.patch/.diff) > Please compare the exports. I just added a single line to the code. > GIT exported everything compare to CVS export. I cannot reproduce on Linux, will try later on Windows. Could you pack and attach a test git repository where you experience this?
right, reproducible on windows with autocrlf=true
fix: http://hg.netbeans.org/core-main/rev/c3a1be1b63f0
Integrated into 'main-golden', will be available in build *201210250921* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c3a1be1b63f0 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #220383 - GIT --> Export Uncommitted Changes using a comparator able to trim line-endings when autocrlf is on