From b9b87b855cdd7b2a8af10b50f2d4287e242564b4 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 10 Jan 2009 16:51:54 -0500 Subject: [PATCH] IO API: unify tree view and the default path in begin_update --- tig.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tig.c b/tig.c index 858f930..0e70d01 100644 --- a/tig.c +++ b/tig.c @@ -2545,17 +2545,13 @@ begin_update(struct view *view, bool refresh) if (!start_io(&view->io)) return FALSE; - } else if (view == VIEW(REQ_VIEW_TREE)) { - if (strcmp(view->vid, view->id)) + } else { + if (view == VIEW(REQ_VIEW_TREE) && strcmp(view->vid, view->id)) opt_path[0] = 0; if (!run_io_rd(&view->io, view->ops->argv, FORMAT_ALL)) return FALSE; - } else { - if (!run_io_rd(&view->io, view->ops->argv, FORMAT_ALL)) - return FALSE; - /* Put the current ref_* value to the view title ref * member. This is needed by the blob view. Most other * views sets it automatically after loading because the -- 2.30.2