Revision 1881d2b88c4b889dcb95782ad4bc5395808438e9 authored by Junio C Hamano on 25 June 2014, 18:49:48 UTC, committed by Junio C Hamano on 25 June 2014, 18:49:48 UTC
"git status", even though it is a read-only operation, tries to
update the index with refreshed lstat(2) info to optimize future
accesses to the working tree opportunistically, 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.

* ym/fix-opportunistic-index-update-race:
  read-cache.c: verify index file before we opportunistically update it
  wrapper.c: add xpread() similar to xread()
2 parent s 85785df + 426ddee
Raw File
prompt.h
#ifndef PROMPT_H
#define PROMPT_H

#define PROMPT_ASKPASS (1<<0)
#define PROMPT_ECHO    (1<<1)

char *git_prompt(const char *prompt, int flags);
char *git_getpass(const char *prompt);

#endif /* PROMPT_H */
back to top