Date | Commit message (Collapse) |
|
This lets us one-line git commands easily like ``, but without
having to remember --git-dir or escape arguments.
|
|
We can rely on timely auto-destruction based on reference
counting; reducing the chance of redundant close(2) calls
which may hit the wront FD.
We do care about certain close calls (e.g. writing to a buffered
IO handle) if we require error-checking for write-integrity. In
other cases, let things go out-of-scope so it can be freed
automatically after use.
|
|
This should reduce overhead of spawning git processes
from our long-running httpd and nntpd servers.
|
|
We'll be using it for more than just cat-file.
Adding a `popen' API for internal use allows us to save a bunch
of code in other places.
|