-
Iterator improvements from diff implementation · da337c80
This makes two changes to iterator behavior: first, advance can optionally do the work of returning the new current value. This is such a common pattern that it really cleans up usage. Second, for workdir iterators, this removes automatically iterating into directories. That seemed like a good idea, but when an entirely new directory hierarchy is introduced into the workdir, there is no reason to iterate into it if there are no corresponding entries in the tree/index that it is being compared to. This second change actually wasn't a lot of code because not descending into directories was already the behavior for ignored directories. This just extends that to all directories.
Russell Belfer committed
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
diff_helpers.c | Loading commit data... | |
diff_helpers.h | Loading commit data... | |
iterator.c | Loading commit data... |