From: Erik Faye-Lund Date: Tue, 13 May 2014 11:56:14 GMT Subject: Re: [PATCH 4/8] Add read-cache--daemon for caching index and related stuff Message-ID: In-Reply-To: <1399979737-8577-7-git-send-email-pclouds@gmail.com> On Tue, May 13, 2014 at 1:15 PM, Nguyễn Thái Ngọc Duy wrote: > diff --git a/Documentation/git-read-cache--daemon.txt b/Documentation/git-read-cache--daemon.txt > new file mode 100644 > index 0000000..1b05be4 > --- /dev/null > +++ b/Documentation/git-read-cache--daemon.txt > @@ -0,0 +1,27 @@ > +git-read-cache--daemon(1) > +============= > + > +NAME > +---- > +git-daemon - A simple cache server for speeding up index file access > + > +SYNOPSIS > +-------- > +[verse] > +'git daemon' [--detach] > + Huh, "git daemon" can't be right... > diff --git a/Makefile b/Makefile > index d0a2b4b..a44ab0b 100644 > --- a/Makefile > +++ b/Makefile > @@ -1504,6 +1504,12 @@ ifdef HAVE_DEV_TTY > BASIC_CFLAGS += -DHAVE_DEV_TTY > endif > > +ifdef HAVE_SHM > + BASIC_CFLAGS += -DHAVE_SHM > + EXTLIBS += -lrt > + PROGRAM_OBJS += read-cache--daemon.o > +endif I think this also needs to be protected against NO_UNIX_SOCKETS