login
Header Space

 
 

Re: [egit / jgit] Implementation of a file tree iteration using ignore rules.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Florian <FloriansKarten@...>
Cc: <git@...>
Date: Saturday, May 10, 2008 - 8:12 pm

Florian Kberle <FloriansKarten@web.de> wrote:

I guess you started working on an older version, only to later find
out that I had also done a lot of work in the mean-time.  :-)

My jgit contributions come in huge bursts.  RevWalk/TreeWalk was one
back in March; the transport API (almost 10,000 lines of code itself)
is the most recent from late April/early May.  Once its fully into
the mainline I'll probably have to slow down for a couple of months.
I have to move in July and have a lot of things to do between now
and then.
 

To keep the history bisectable as much as possible it is better
if you use `git rebase -i` to squash these two changes together,
so that we never introduce the Java 6 usage into the codebase.


Yea, that sounds right.
 

Ouch.  I forgot about that fun corner case.  In the context of a
TreeWalk directory "a" must actually still be reported as an entry so
that the TreeWalk main loop knows to enter into the subtree iterator.
However the subtree iterator needs to only have entry "b.txt" within
its entry list.
 

The treewalk package is already established so I would say add
them there.  Since you are the original developer and your code is
not yet in mainline I would ask that you perform the renames.


The TreeFilter framework is perhaps not the right API for ignore
rules, that is likely true.  It also works with paths as byte[] and
not as String, because we get byte[] (generally UTF-8 encoded) data
from canonical tree objects when reading from the object database.
Avoiding the conversion for most entries is a huge performance
improvement for us.

I still won't give up my silly dream for `jgit log -- 'foo/*.c'`,
but maybe we do need two different implementations to make things
work out well.

-- 
Shawn.
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [egit / jgit] Implementation of a file tree iteration us..., Florian Köberle, (Sat May 10, 11:11 am)
Re: [egit / jgit] Implementation of a file tree iteration us..., Shawn O. Pearce, (Sat May 10, 8:12 pm)
speck-geostationary