Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331351

Summary: JGit Add command does add files with flag "assume unchanged"
Product: [Technology] JGit Reporter: Stefan Lay <stefan.lay>
Component: JGitAssignee: Stefan Lay <stefan.lay>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: 0.10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Stefan Lay CLA 2010-11-29 11:07:44 EST
I have set the assume-unchanged flag on a file by git update-index --assume-unchanged or by selecting "Team -> Assume unchanged" in EGit.

I change the content of the file in the working tree and call the JGit add command with a matching filepattern (e.g. from EGit "Team -> Add").

The index is updated for the file, but it should not.
Comment 1 Stefan Lay CLA 2010-11-29 11:59:29 EST
Fix proposed: http://egit.eclipse.org/r/#change,1970
Comment 2 Matthias Sohn CLA 2010-11-29 19:21:39 EST
merged as 9225b88ae6b22eb6164434f62c5226ada777d277