On 2009.03.30 15:58:34 -0700, Eric Wong wrote:I guess that paragraph was meant to explain why "git ls-tree HEAD Documentation" and "git ls-tree HEAD Documentation/" give different results. The first one shows the entry for the tree object, while the second one shows the contents of the tree object. In contrast to "ls" which would descend into the directory in both cases. It's not the number of files that matters. With just one file, you just don't notice the buggy behaviour, because showing all files is the same as showing the specified file. And interestingly, the problem doesn't seem to be in show_tree/show_recursive, but in match_tree_entry. With "git ls-tree HEAD gitweb/git-favicon.png g" we descend into gitweb/ and at some point we get: match = "g" base = "gitweb/" And we have: if (baselen >= matchlen) { if (strncmp(base, match, matchlen)) continue; /* The base is a subdirectory of a path which was specified */ return 1; } So we return 1 there. The code doesn't do what the comment says, so I guess we can be pretty sure that the behaviour is not intended. Björn -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Davide Libenzi | [patch 7/8] fdmap v2 - implement sys_socket2 |
| Greg Kroah-Hartman | [PATCH 018/196] coda: convert struct class_device to struct device |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| David Newall | Re: Slow DOWN, please!!! |
git: | |
| Christoph Lameter | Network latency regressions from 2.6.22 to 2.6.29 |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
