summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83ef9f8)
raw | patch | inline | side by side (parent: 83ef9f8)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 14 Apr 2011 02:30:42 +0000 (22:30 -0400) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 14 Apr 2011 02:30:42 +0000 (22:30 -0400) |
tig.c | patch | blob | history |
index b1c1bdb93dfa3af5dc02f4fec105d6e209560302..6f4c03f6abd7fdb407e512a073bae48f44f542cd 100644 (file)
--- a/tig.c
+++ b/tig.c
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;
}