Skip to content

Commit 4e4566f

Browse files
avargitster
authored andcommitted
ls-tree: remove commented-out code
Remove code added in f35a6d3 (Teach core object handling functions about gitlinks, 2007-04-09), later patched in 7d0b18a (Add output flushing before fork(), 2008-08-04), and then finally ending up in its current form in d3bee16 (tree.c: allow read_tree_recursive() to traverse gitlink entries, 2009-01-25). All while being commented-out! Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a53343e commit 4e4566f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

builtin/ls-tree.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ static int show_tree(const struct object_id *oid, struct strbuf *base,
6969
const char *type = blob_type;
7070

7171
if (S_ISGITLINK(mode)) {
72-
/*
73-
* Maybe we want to have some recursive version here?
74-
*
75-
* Something similar to this incomplete example:
76-
*
77-
if (show_subprojects(base, baselen, pathname))
78-
retval = READ_TREE_RECURSIVE;
79-
*
80-
*/
8172
type = commit_type;
8273
} else if (S_ISDIR(mode)) {
8374
if (show_recursive(base->buf, base->len, pathname)) {

0 commit comments

Comments
 (0)