1
0
mirror of https://github.com/git/git.git synced 2024-10-21 10:28:50 +02:00
git/compat
Junio C Hamano 9af098c29b Merge branch 'ym/fix-opportunistic-index-update-race'
Read-only operations such as "git status" that internally refreshes
the index write out the refreshed index to the disk to optimize
future accesses to the working tree, but this could race with a
"read-write" operation that modify the index while it is running.
Detect such a race and avoid overwriting the index.

Duy raised a good point that we may need to do the same for the
normal writeout codepath, not just the "opportunistic" update
codepath.  While that is true, nobody sane would be running two
simultaneous operations that are clearly write-oriented competing
with each other against the same index file.  So in that sense that
can be done as a less urgent follow-up for this topic.

* ym/fix-opportunistic-index-update-race:
  read-cache.c: verify index file before we opportunistically update it
  wrapper.c: add xpread() similar to xread()
2014-06-03 12:06:41 -07:00
..
nedmalloc Windows: do not redefine _WIN32_WINNT 2013-09-11 14:50:19 -07:00
poll Windows: do not redefine _WIN32_WINNT 2013-09-11 14:50:19 -07:00
regex C: have space around && and || operators 2013-10-16 10:26:39 -07:00
vcbuild Merge branch 'ks/tree-diff-nway' 2014-06-03 12:06:40 -07:00
win32 mingw: activate alloca 2014-04-09 10:08:35 -07:00
apple-common-crypto.h
basename.c
bswap.h read-cache: use get_be32 instead of hand-rolled ntoh_l 2014-01-23 14:03:48 -08:00
fopen.c
gmtime.c date: recognize bogus FreeBSD gmtime output 2014-04-01 14:39:04 -07:00
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c mingw: remove mingw_write 2014-01-17 12:09:52 -08:00
mingw.h mingw: remove mingw_write 2014-01-17 12:09:52 -08:00
mkdir.c
mkdtemp.c
mmap.c wrapper.c: add xpread() similar to xread() 2014-04-10 12:18:55 -07:00
msvc.c
msvc.h MSVC: fix stat definition hell 2013-09-11 11:08:52 -07:00
obstack.c
obstack.h
pread.c
precompose_utf8.c
precompose_utf8.h
qsort.c
setenv.c
snprintf.c
strcasestr.c
strlcpy.c
strtoimax.c
strtoumax.c
terminal.c
terminal.h
unsetenv.c
win32.h
win32mmap.c
winansi.c