Skip to content

Commit 07330a4

Browse files
committed
Merge branch 'tl/ls-tree-oid-only'
"git ls-tree" learns "--oid-only" option, similar to "--name-only", and more generalized "--format" option. source: <[email protected]> * tl/ls-tree-oid-only: ls-tree: `-l` should not imply recursive listing
2 parents 95acb13 + 350296c commit 07330a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/ls-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int show_tree_long(const struct object_id *oid, struct strbuf *base,
255255
printf("%06o %s %s %7s\t", data.mode, type_name(data.type),
256256
find_unique_abbrev(data.oid, abbrev), size_text);
257257
show_tree_common_default_long(base, pathname, data.base->len);
258-
return 1;
258+
return recurse;
259259
}
260260

261261
static int show_tree_name_only(const struct object_id *oid, struct strbuf *base,

0 commit comments

Comments
 (0)