From 6b0f9d0419dfe7d93fe74d5c6f5ff3af105494a7 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 13 Apr 2011 22:30:42 -0400 Subject: [PATCH] Simplify blame argv formatting --- tig.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tig.c b/tig.c index b1c1bdb..6f4c03f 100644 --- a/tig.c +++ b/tig.c @@ -4125,11 +4125,10 @@ blame_open(struct view *view, enum open_flags flags) if (*opt_ref || !begin_update(view, opt_cdup, file_argv, flags)) { const char *blame_cat_file_argv[] = { - "git", "cat-file", "blob", path, NULL + "git", "cat-file", "blob", "%(ref):%(file)", NULL }; - if (!string_format(path, "%s:%s", opt_ref, opt_file) || - !begin_update(view, opt_cdup, blame_cat_file_argv, flags)) + if (!begin_update(view, opt_cdup, blame_cat_file_argv, flags)) return FALSE; } -- 2.30.2