mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
Merge branch 'tl/ls-tree-oid-only'
"git ls-tree" learns "--oid-only" option, similar to "--name-only", and more generalized "--format" option. source: <cover.1648026472.git.dyroneteng@gmail.com> * tl/ls-tree-oid-only: ls-tree: `-l` should not imply recursive listing
This commit is contained in:
@@ -255,7 +255,7 @@ static int show_tree_long(const struct object_id *oid, struct strbuf *base,
|
|||||||
printf("%06o %s %s %7s\t", data.mode, type_name(data.type),
|
printf("%06o %s %s %7s\t", data.mode, type_name(data.type),
|
||||||
find_unique_abbrev(data.oid, abbrev), size_text);
|
find_unique_abbrev(data.oid, abbrev), size_text);
|
||||||
show_tree_common_default_long(base, pathname, data.base->len);
|
show_tree_common_default_long(base, pathname, data.base->len);
|
||||||
return 1;
|
return recurse;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int show_tree_name_only(const struct object_id *oid, struct strbuf *base,
|
static int show_tree_name_only(const struct object_id *oid, struct strbuf *base,
|
||||||
|
|||||||
Reference in New Issue
Block a user