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
14e7df995a
index: move static functions from Index to IndexFile and delete it
...
The Index struct no longer has any state, so it's not needed.
2020-12-18 16:12:45 -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
af1760b02e
index: load index file eagerly in Index::load() now that Repo::index() is lazy
2020-12-18 16:12:45 -08:00
Martin von Zweigbergk
6721b576b7
releasing: add copyright header also to generated files
...
This doesn't seem right to me, but it seems the release tool (`cross`)
requires it.
2020-12-15 18:36:23 -08:00
Martin von Zweigbergk
6b1427cb46
import commit 0f15be02bf4012c116636913562691a0aaa7aed2 from my hg repo
2020-12-12 00:23:38 -08:00