From e7d0ebc0ec190e3a07fc28a2f551426e34a1ee6e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 11 Dec 2009 17:03:17 -0500 Subject: [PATCH] Fix usage of the status view from a sub directory --- NEWS | 5 +++++ tig.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) 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); -- 2.30.2