Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
Original comment by robin.ro...@gmail.com
on 24 Nov 2008 at 11:48
This is a fairly useful optimization in git. Most people use it,
because most people don't pass "--full-history" when they run
"git log -- path". So I think we really want to do it by default
in jgit.
Enabling this optimization again probably requires adding a new
method to TreeFilter which allows the filter graph to return only
nodes which select paths by name, and then do something like:
else if (chgs == adds && isPathSetEmpty(c.getTree())) {
c.parents = RevCommit.NO_PARENTS;
return true;
}
where isPathSetEmpty runs a second TreeWalk iteration but uses the
new (smaller) filter graph that only matches on paths.
I'm not going to write that out today. But I thought I'd at least
write an email while the idea was fresh in my head.
Original comment by sop+code@google.com
on 25 Nov 2008 at 12:14
Original comment by robin.ro...@gmail.com
on 26 Nov 2008 at 8:15
Original issue reported on code.google.com by
robin.ro...@gmail.com
on 18 Nov 2008 at 8:40