538e983686
Add RefToDisplayError kind
2016-07-14 20:26:22 +02:00
d22b7583ce
Add dependency: libimagentrylist
2016-07-14 19:54:55 +02:00
295374e1bd
Merge pull request #532 from jsirois/jsirois/issues/499
...
Add a `fold_ok` utility.
2016-07-14 18:29:32 +02:00
John Sirois
7f57e5e234
Move from a helper function to a typeclass.
...
This introduces the `FoldResut` trait to move from `func(receiver, ...)`
style to `receiver.func(...)` style. Also add a means to pass the
default result explicitly.
2016-07-14 07:28:54 -06:00
John Sirois
2c40b8734e
Add a fold_ok
utility.
...
Add a utility that folds an iterator into a result and uses it to reduce
boilerplate in the codebase.
2016-07-13 12:43:04 -06:00
3a2010c35b
Merge pull request #528 from matthiasbeyer/update-versions
...
Update all version strings: 0.1.0 -> 0.2.0
2016-07-12 20:09:53 +02:00
9337a14cdd
Update all version strings: 0.1.0 -> 0.2.0
2016-07-12 11:51:20 +02:00
923a4c51b5
Merge pull request #519 from matthiasbeyer/ignore-out
...
Ignore /out
2016-07-08 00:30:52 +02:00
b55789578c
Ignore /out
2016-07-07 23:44:04 +02:00
c6f9d91599
Merge pull request #513 from matthiasbeyer/libimagstore/hooks/optionally-deny-mutable-hooks
...
Libimagstore/hooks/optionally deny mutable hooks
2016-07-07 21:52:08 +02:00
cda50e4cdb
Merge pull request #518 from matthiasbeyer/imag-view/remove-unneeded-dep
...
Remove unused dependency: rustbox
2016-07-07 21:18:48 +02:00
cbf636960e
Merge pull request #517 from matthiasbeyer/libimaginteraction/fix-nl-bug
...
Fix bug when newline is in the input
2016-07-07 20:43:11 +02:00
44f36090e0
Merge pull request #512 from matthiasbeyer/libimagstore/remove-aborting-error-catching
...
Remove checking for aborting errors
2016-07-07 20:29:40 +02:00
7818b523b9
Deny mutable access for hooks if the config says so
2016-07-07 20:29:24 +02:00
453fdc2e0e
Remove unused dependency: rustbox
2016-07-07 20:08:37 +02:00
426fe45577
Fix bug when newline is in the input
2016-07-07 18:46:15 +02:00
eb31da70d1
Remove import: trace_error() function
2016-07-07 17:03:20 +02:00
7f14639c1e
Add configuration parsing/getter for denying of mutable hooks
2016-07-06 19:10:17 +02:00
b4b719b753
Add error kind for denied hooks
2016-07-06 19:09:58 +02:00
8adfe7443e
Add optional setting for denying mutable hooks
2016-07-06 19:09:40 +02:00
d18766b4b4
Remove checking for aborting errors
...
As the Aspect execution catches the aborting hooks and returns them, we
cannot have a non-aborting error here, so there is no point in checking
for aborting errors.
2016-07-06 18:01:00 +02:00
4ec3e29459
Merge pull request #481 from matthiasbeyer/imag-ref/init
...
Imag ref/init
2016-07-06 14:42:24 +02:00
dd4349f24f
Merge pull request #503 from matthiasbeyer/libimagstore/storeid-display-fix
...
Fix Display impl for StoreId by using lossy string rep if PathBuf::to…
2016-07-05 15:25:23 +02:00
5bfdd5a827
Impl remove()
2016-07-05 13:50:00 +02:00
8eeb8bb310
Add imports
2016-07-05 13:49:29 +02:00
3eb5e82839
Impl add()
2016-07-05 13:49:29 +02:00
6fc05a027b
Add main()
2016-07-05 13:49:29 +02:00
56759ecba8
Add ui module
2016-07-05 13:49:29 +02:00
d5cb5be4ab
Add dependencies
2016-07-05 13:49:29 +02:00
c45b5ba975
Initial import
2016-07-05 13:49:29 +02:00
64ddb501e2
Merge pull request #500 from matthiasbeyer/libimagref/delete-fix
...
Fix: We cannot offer a Ref::delete(self), but a Ref::delete_by_hash()
2016-07-05 13:48:22 +02:00
580ea28877
Fix Display impl for StoreId by using lossy string rep if PathBuf::to_str() fails
2016-07-05 13:47:58 +02:00
55c39ac94d
Fix: We cannot offer a Ref::delete(self), but a Ref::delete_by_hash()
...
We cannot offer the former because deleting self would always fail as
the FileLockEntry is already borrowed from the store, so the store
declines this.
But deleting by hash works.
2016-07-05 12:42:52 +02:00
1211a99775
Merge pull request #496 from matthiasbeyer/libimagentrylist/generic-core
...
libimagentrylist: Make CoreLister generic
2016-07-05 09:00:19 +02:00
fced22a281
Merge pull request #468 from matthiasbeyer/libimagref/init
...
libimagref/init
2016-07-05 09:00:14 +02:00
a29242c586
Impl Display for Ref
2016-07-04 20:18:52 +02:00
66cdc192c2
Annotate that we have a closure which takes &Entry here
2016-07-04 20:13:45 +02:00
2cd511c0c1
Make CoreLister generic
2016-07-04 20:04:38 +02:00
ebf185fd29
Add Ref::from_filelockentry()
2016-07-04 19:29:02 +02:00
617cb97ddf
Add Ref::get_path_hash()
2016-07-04 19:29:02 +02:00
a240b99773
Impl Ref::get_by_hash()
2016-07-04 19:29:02 +02:00
38557e9a9b
impl Ref::delete()
2016-07-04 19:29:02 +02:00
31f32a4e59
Ref: derive Debug
2016-07-04 19:29:02 +02:00
bb4b705816
Impl Default for RefFlags
2016-07-04 19:29:02 +02:00
757d69f41a
Impl: Ref::refind()
2016-07-04 19:29:02 +02:00
cc8048ea24
Impl Ref::update_ref()
2016-07-04 19:29:02 +02:00
72a125ab62
Extract permissions getting into helper function
2016-07-04 19:29:02 +02:00
6a24fcb7e4
Outsource hash getter functions into new (pub) functions
2016-07-04 19:29:02 +02:00
9604f94f17
Impl Ref::fs_link_valid()
2016-07-04 19:29:02 +02:00
5bf11af82c
Impl Ref::fs_link_valid_permissions()
2016-07-04 19:29:02 +02:00