[PATCH/RFC v2] read-cache: save index entry updates in ILOG index extension

2013-08-08 Thread Nguyễn Thái Ngọc Duy
If you have something different from both worktree and HEAD in index, then accidentally do git add foo, you may find it hard to recover the previous version of foo in index. This is especially true when you do git add -p with manual patch editing. This patch makes sure that every operation that

Re: [PATCH/RFC v2] read-cache: save index entry updates in ILOG index extension

2013-08-08 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: Old operation's updates are removed as new ones are added to keep the size under 1 MB. ILOG keeps minimum 10 operations regardless of its size. These contansts should be configurable later one. ILOG content will be compressed later on so that it