From: Jonas Fonseca Date: Fri, 11 Dec 2009 22:03:17 +0000 (-0500) Subject: Fix usage of the status view from a sub directory X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7d0ebc0ec190e3a07fc28a2f551426e34a1ee6e;p=tig.git Fix usage of the status view from a sub directory --- diff --git a/NEWS b/NEWS index 67ebad8..31b5169 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,11 @@ Improvements: - Branch view: add entry to browse all branches (uses git-log's --all flag). +Bug fixes: + + - Status view: fix usage from sub directories, which was broken by the + changes made to support blame view from sub directories. + tig-0.15 -------- diff --git a/tig.c b/tig.c index 9710d6f..6957ff5 100644 --- a/tig.c +++ b/tig.c @@ -5311,7 +5311,7 @@ status_run(struct view *view, const char *argv[], char status, enum line_type ty char *buf; struct io io = {}; - if (!run_io(&io, argv, NULL, IO_RD)) + if (!run_io(&io, argv, opt_cdup, IO_RD)) return FALSE; add_line_data(view, NULL, type); @@ -5709,10 +5709,8 @@ status_update_prepare(struct io *io, enum line_type type) return run_io(io, staged_argv, opt_cdup, IO_WR); case LINE_STAT_UNSTAGED: - return run_io(io, others_argv, opt_cdup, IO_WR); - case LINE_STAT_UNTRACKED: - return run_io(io, others_argv, NULL, IO_WR); + return run_io(io, others_argv, opt_cdup, IO_WR); default: die("line type %d not handled in switch", type);