Re: [RFC/PATCH] Documentation/technical/api-fswatch.txt: start with outline
- From
Jeff King <peff@peff.net>
- Date
- Mar 12, 2013, 09:55 UTC
- Message-ID
- <20130312095519.GA12170@sigill.intra.peff.net>
- In-Reply-To
- <CALkWK0m+CS25=Z91y90z49g4GK+b7oFugiXoH0h0J6P-yQXRCQ@mail.gmail.com>
On Tue, Mar 12, 2013 at 03:13:39PM +0530, Ramkumar Ramachandra wrote:
Show 7 quoted lines
> Heiko Voigt wrote: > > While talking about platform independence. How about Windows? AFAIK > > there are no file based sockets. How about using shared memory, thats > > available, instead? It would greatly reduce the needed porting effort. > > What about the git credential helper: it uses UNIX sockets, no? How > does git-credential-winstore [1] work?
No, the main credential protocol happens over pipes to a child process's stdin/stdout. The credential-cache helper does use unix sockets (since it needs to contact a long-running daemon that caches the credentials), and AFAIK is not available under Windows (but that's OK, because Windows-specific helpers that use secure storage are better anyway).
When I introduced credential-cache, I recall somebody mentioned that there is some Windows-equivalent IPC that can be used to emulate unix domain sockets. The calls aren't the same, but as long as your requirements are basically "get messages to/from the daemon", you can probably abstract away the details on a per-platform basis.
Unfortunately I can't seem to find the original message or any details in the archive (and I know next to nothing about Windows IPC).
-Peff