Commit graph

38843 commits

Author SHA1 Message Date
Joey Hess
c8b1fa67b4
Behavior change: --trust-glacier option no longer overrides trust
Since that can lead to data loss, which should never be enabled by an
option other than --force.

This commit was sponsored by Jake Vosloo on Patreon.
2021-01-07 10:37:43 -04:00
Joey Hess
2bf34fc17f
Behavior change: --trust option no longer overrides trust
Since that can lead to data loss, which should never be enabled by an
option other than --force.

I suppose that using --trust was in some situation, safer than --force,
because it doesn't entirely disable checking for data loss, but only
disables checking involving data that is on the specified repository.
But it seems better to be able to say that data loss only happens with
--force.

This commit was sponsored by Graham Spencer on Patreon.
2021-01-07 10:34:57 -04:00
Joey Hess
6a0030a110
Behavior change: git-annex trust now needs --force
Since unconsidered use of trusted repositories can lead to data loss.

Trusted has always been this way, but it used to be acceptable for
git-annex to be set up so that data could be lost without using --force,
and most or all other ways that can happen have already been eliminated.

This commit was sponsored by Mark Reidenbach on Patreon.
2021-01-07 10:09:39 -04:00
Joey Hess
f354697648
Merge branch 'master' of ssh://git-annex.branchable.com 2021-01-06 14:27:03 -04:00
Joey Hess
715c6013d4
wording 2021-01-06 14:26:39 -04:00
Joey Hess
24564c3de1
improve wording 2021-01-06 14:24:17 -04:00
Joey Hess
4694c2bb87
Merge branch 'master' into requirednumcopies 2021-01-06 14:24:09 -04:00
Joey Hess
cc89699457
mincopies
This is conceptually very simple, just making a 1 that was hard coded be
exposed as a config option. The hard part was plumbing all that, and
dealing with complexities like reading it from git attributes at the
same time that numcopies is read.

Behavior change: When numcopies is set to 0, git-annex used to drop
content without requiring any copies. Now to get that (highly unsafe)
behavior, mincopies also needs to be set to 0. It seemed better to
remove that edge case, than complicate mincopies by ignoring it when
numcopies is 0.

This commit was sponsored by Denis Dzyubenko on Patreon.
2021-01-06 14:15:19 -04:00
AlbertZeyer
81f47c2662 2021-01-06 15:24:28 +00:00
AlbertZeyer
7404d26f6a Added a comment 2021-01-06 14:59:01 +00:00
AlbertZeyer
35e9318418 Added a comment 2021-01-06 11:15:43 +00:00
Joey Hess
8d8cdbec56
branch 2021-01-05 14:28:54 -04:00
Joey Hess
428d228ee5
docs for requirednumcopies
Not implemented yet.
2021-01-05 14:22:44 -04:00
Joey Hess
f3312baa2c
the author of this forum post deleted it, so remove comments 2021-01-05 11:23:31 -04:00
Joey Hess
56df4030c3
Merge branch 'master' of ssh://git-annex.branchable.com 2021-01-05 11:23:02 -04:00
Joey Hess
5018c6abee
update 2021-01-05 09:15:28 -04:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
6808e76d0a removed 2021-01-05 06:06:35 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
6fbb284b8d Added a comment 2021-01-05 05:55:14 +00:00
Joey Hess
90ec3f2238
promote forum post to bug report 2021-01-04 17:01:51 -04:00
Joey Hess
c6a38d392b
comment 2021-01-04 16:48:28 -04:00
Joey Hess
3fa806b048
wrong, wrong, wrong 2021-01-04 16:28:36 -04:00
Joey Hess
a3a19518d8
fix --time-limit
It got broken in several ways by the streaming seeking optimisations
around version 8.20201007.

Moved time limit checking out of the matcher, which was a hack in the
first place. So everywhere that uses Limit.getMatcher needs to check
time limit. Well, almost everywhere. Command.Info uses it, but it does
not make sense to time limit getting info. And Command.MultiCast uses it
just to build up a list of files that then get passed to a command, so
it would never have hit the timeout in a useful way.

This implementation is a little more expensive when at time limit than
necessary, since it continues seeking only to discard everything after the
time limit. I did try making it close the file handles to force a faster
shutdown, but that didn't work and hung. Could certianly be improved
somehow, but seeking is probably not the expensive bit when a time limit
is hit, so this seems acceptable for now.
2021-01-04 15:57:11 -04:00
Joey Hess
a5511c32d7
comment 2021-01-04 14:32:29 -04:00
Joey Hess
8a84ddc061
close 2021-01-04 13:46:11 -04:00
Joey Hess
0684b940ae
comment 2021-01-04 13:43:01 -04:00
Joey Hess
ebc89b3550
add pointer to annex.largefiles config docs 2021-01-04 13:39:48 -04:00
Joey Hess
8f69f5d9aa
comment 2021-01-04 13:34:32 -04:00
Joey Hess
5ce61c6b2a
add: Significantly speed up adding lots of non-large files to git
* add: Significantly speed up adding lots of non-large files to git,
  by disabling the annex smudge filter when running git add.
* add --force-small: Run git add rather than updating the index itself,
  so any other smudge filters than the annex one that may be enabled will
  be used.
2021-01-04 13:12:28 -04:00
Joey Hess
0b2b666a38
fix bad annex.largefiles example syntax 2021-01-04 13:11:05 -04:00
Joey Hess
1c5fc8f047
Git.Queue: allow providing git common options like -c 2021-01-04 12:51:55 -04:00
Joey Hess
36f691e7e5
update year 2021-01-04 12:45:19 -04:00
Joey Hess
cd776ecb2e
avoid combining queued commands with different params
I don't think this affected git-annex currently, but if the same command
was queued twice with different params, one set of params was thrown
away, and the files going with those were run with the other set of
params.
2021-01-04 12:41:19 -04:00
Joey Hess
e7b0754171
comment and todo 2021-01-04 12:26:48 -04:00
Joey Hess
27ec6c7427
comment 2021-01-04 12:07:01 -04:00
Joey Hess
4f95ff6e84
comment 2021-01-04 12:05:32 -04:00
Joey Hess
89f923135d
comment 2021-01-04 12:04:01 -04:00
Joey Hess
409eeed014
Merge branch 'master' of ssh://git-annex.branchable.com 2021-01-04 11:57:29 -04:00
AlbertZeyer
ebe6c12cc0 Added a comment 2021-01-04 12:04:04 +00:00
AlbertZeyer
c5dd184d66 Added a comment 2021-01-03 22:07:02 +00:00
AlbertZeyer
3ceaf762b9 2021-01-03 22:02:02 +00:00
AlbertZeyer
29114d53d9 Added a comment 2021-01-03 21:48:51 +00:00
AlbertZeyer
d7bb4040d8 Added a comment 2021-01-02 23:49:14 +00:00
Joey Hess
ea95de3656
Merge branch 'master' of ssh://git-annex.branchable.com 2021-01-02 19:33:55 -04:00
AlbertZeyer
62f06649d7 Added a comment 2021-01-02 16:23:05 +00:00
Lukey
0a264f1c98 2021-01-02 15:28:02 +00:00
Lukey
7f11160002 Added a comment 2021-01-02 15:22:18 +00:00
Lukey
bd5c668118 Added a comment 2021-01-02 15:16:04 +00:00
Lukey
420e704955 Added a comment 2021-01-02 15:12:49 +00:00
Lukey
ed412d2406 Added a comment 2021-01-02 15:05:01 +00:00
AlbertZeyer
065cea3568 Added a comment 2021-01-01 22:30:34 +00:00