Re: [PATCH] index-helper: use watchman to avoid refreshing index with lstat()

2016-05-13 Thread Ramsay Jones
On 13/05/16 19:27, David Turner wrote: > From: Nguyễn Thái Ngọc Duy [snip] > + > +static void reply_to_poke(int client_fd, const char *pid_buf) > +{ > + char *capabilities; > + struct strbuf sb = STRBUF_INIT; > + > +#ifdef USE_WATCHMAN > + pid_t client_pid =

[PATCH] index-helper: use watchman to avoid refreshing index with lstat()

2016-05-13 Thread David Turner
From: Nguyễn Thái Ngọc Duy Watchman is hidden behind index-helper. Before git tries to read the index from shm, it notifies index-helper through the socket and waits for index-helper to prepare a file for sharing memory (with MAP_SHARED). index-helper then contacts watchman,