Re: [PATCH v2] Verify index file before we opportunistically update it

2014-04-09 Thread Junio C Hamano
Yiannis Marangos writes: > Before we proceed to "opportunistic update" we must verify that the > current index file is the same as the one that we read before. There > is a possible race if we don't do this: Please somehow make it clear that the race is in general, and use of "git rebase" in thi

[PATCH v2] Verify index file before we opportunistically update it

2014-04-09 Thread Yiannis Marangos
Before we proceed to "opportunistic update" we must verify that the current index file is the same as the one that we read before. There is a possible race if we don't do this: 1. process A calls git-rebase 2. process A applies 1st commit 3. process B calls git-status 4. process B reads