21 lines
546 B
Diff
21 lines
546 B
Diff
|
--- ui-tree.c 2011-11-17 18:00:20.036822908 +0100
|
||
|
+++ ui-tree.c 2011-11-17 18:01:22.396236999 +0100
|
||
|
@@ -262,6 +262,7 @@
|
||
|
unsigned char sha1[20];
|
||
|
struct commit *commit;
|
||
|
const char *paths[] = {path, NULL};
|
||
|
+ struct pathspec pathspec;
|
||
|
|
||
|
if (!rev)
|
||
|
rev = ctx.qry.head;
|
||
|
@@ -283,6 +284,8 @@
|
||
|
}
|
||
|
|
||
|
match_path = path;
|
||
|
- read_tree_recursive(commit->tree, "", 0, 0, paths, walk_tree, NULL);
|
||
|
+ init_pathspec(&pathspec, paths);
|
||
|
+ read_tree_recursive(commit->tree, "", 0, 0, &pathspec, walk_tree, NULL);
|
||
|
+ free_pathspec(&pathspec);
|
||
|
ls_tail();
|
||
|
}
|