summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 300fb14)
raw | patch | inline | side by side (parent: 300fb14)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 18 Nov 2009 03:49:05 +0000 (22:49 -0500) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 18 Nov 2009 04:31:31 +0000 (23:31 -0500) |
tig.c | patch | blob | history |
index e931ce246fc7ab59b4976e021c77ff423d47520d..f98fb24a4a076a5f317e38ff1b6ed539347dfaed 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -650,12 +650,6 @@ run_io_rd(struct io *io, const char **argv, const char *dir, enum format_flags f
return init_io_rd(io, argv, dir, flags) && start_io(io);
}
-static bool
-run_io_rd_dir(struct io *io, const char **argv, const char *dir, enum format_flags flags)
-{
- return init_io_rd(io, argv, dir, flags) && start_io(io);
-}
-
static bool
io_eof(struct io *io)
{
return TRUE;
}
- if (!run_io_rd_dir(&io, log_file, opt_cdup, FORMAT_NONE)) {
+ if (!run_io_rd(&io, log_file, opt_cdup, FORMAT_NONE)) {
report("Failed to load tree data");
return TRUE;
}
return FALSE;
if (*opt_ref || !io_open(&view->io, path)) {
- if (!run_io_rd_dir(&view->io, blame_cat_file_argv, opt_cdup, FORMAT_ALL))
+ if (!run_io_rd(&view->io, blame_cat_file_argv, opt_cdup, FORMAT_ALL))
return FALSE;
}
if (view->lines == 0 && !view->parent)
die("No blame exist for %s", view->vid);
- if (view->lines == 0 || !run_io_rd_dir(&io, argv, opt_cdup, FORMAT_ALL)) {
+ if (view->lines == 0 || !run_io_rd(&io, argv, opt_cdup, FORMAT_ALL)) {
report("Failed to load blame data");
return TRUE;
}