Martin von Zweigbergk
9ad225b3b5
trees: make entries() function be the recursive one, since it's more common
2020-12-20 00:26:06 -08:00
Martin von Zweigbergk
8ec100713d
tree: for walking tree, replace function with callback by iterator
...
Iterators are a lot easier to use.
2020-12-20 00:16:05 -08:00
Martin von Zweigbergk
4734eb6493
working_copy: let WorkingCopy and TreeState have the working copy path
...
I don't know why I didn't do it this way from the beginning.
2020-12-18 23:56:32 -08:00
Martin von Zweigbergk
00fb670c9c
index: make Index::load() return Arc<IndexFile> instead of Index
...
This removes one level of indirection, which is nice because it was
visible to the callers. The `Index` struct is now empty. The next step
is obviously to delete it (and perhaps rename `IndexFile` to `Index`
or `ReadonlyIndex`).
2020-12-18 16:12:45 -08:00
Martin von Zweigbergk
6b1427cb46
import commit 0f15be02bf4012c116636913562691a0aaa7aed2 from my hg repo
2020-12-12 00:23:38 -08:00