Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331351 - JGit Add command does add files with flag "assume unchanged"
Summary: JGit Add command does add files with flag "assume unchanged"
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.10.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Lay CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 11:07 EST by Stefan Lay CLA
Modified: 2010-11-29 19:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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