Re: [PATCH 3/8] apply: fix adding new files on i-t-a entries

2015-08-25 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Applying a patch that adds a file when that file is registered with "git > add -N" will fail with message "already exists in index" because > git-apply checks, sees those i-t-a entries and aborts. git-apply does > not realize those are for bookkeeping only, they do

[PATCH 3/8] apply: fix adding new files on i-t-a entries

2015-08-21 Thread Nguyễn Thái Ngọc Duy
Applying a patch that adds a file when that file is registered with "git add -N" will fail with message "already exists in index" because git-apply checks, sees those i-t-a entries and aborts. git-apply does not realize those are for bookkeeping only, they do not really exist in the index. This pat