Yuya Nishihara
cc860f771c
working_copy: do not overwrite ignored file
...
Since the file should have been removed on Diff::Modified case, we can always
expect that write_file/conflict() creates new file.
2022-08-07 15:06:30 +02:00
Martin von Zweigbergk
4cf04f373e
tests: move init_{repo,workspace}
functions onto types
...
I tried to create a `TestRepo` and was surprised that I couldn't do
that by calling a function on it.
2022-05-21 22:33:16 -07:00
Martin von Zweigbergk
7268e5608e
working_copy: propagate errors when snapshotting
...
Closes #258
2022-05-02 11:23:38 -07:00
Martin von Zweigbergk
96b3e05bc5
working_copy: rename write_tree()
to snapshot()
...
I think I copied the name `write_tree()` from Git, but I find it quite
confusing, since it's not clear if it write a tree to the working copy
or reads the working copy and writes a tree to the store (it's the
former).
2022-05-02 08:00:15 -07:00
Martin von Zweigbergk
18a64c365a
working_copy: respect sparse patterns when writing tree ( #52 )
2022-04-26 14:52:17 -07:00
Martin von Zweigbergk
0d881de56c
working_copy: allow updating sparse patterns ( #52 )
...
With this patch, we add support for setting the sparse patterns, and
we respect it when updating the working copy.
2022-04-26 14:52:17 -07:00