io_run_bg: take directory argument
commitcbd667bf9344b3098a6028b2816102484c93a7b8
authorJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 7 Jun 2015 18:10:03 +0000 (7 14:10 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Sun, 7 Jun 2015 18:10:03 +0000 (7 14:10 -0400)
treeb4c2350f86e8438f500456b3eadcef4d98bbaec2
parenta4f20f3e86dbdf7fac22b60a175cb4d31d7f8ee1
io_run_bg: take directory argument

Fix two potential bugs where the status and repo module where using
io_run_bg assuming commands where executed at the repo root where they
are in fact executed in the directory where tig was started. Similarly,
the silent branch of open_external_viewer will now also correctly pass
the directory to io_run_bg.
include/tig/io.h
src/display.c
src/io.c
src/repo.c
src/status.c