X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=io.c;h=901a3817065e32a46d623363b82be529840945a2;hb=e4a8d2c0d050d3c53e1aa3846f2ffc2a981ffa65;hp=fabde00747eb5130e4b33c0dbe744ed05bc64977;hpb=7dfa0b29496911af61a3d761979db0b1093fec6a;p=tig.git diff --git a/io.c b/io.c index fabde00..901a381 100644 --- a/io.c +++ b/io.c @@ -183,6 +183,9 @@ io_run(struct io *io, enum io_type type, const char *dir, const char *argv[], .. io_init(io); + if (dir && !strcmp(dir, argv[0])) + return io_open(io, "%s%s", dir, argv[1]); + if ((type == IO_RD || type == IO_WR) && pipe(pipefds) < 0) { io->error = errno; return FALSE;