git-annex.git
2 years agocomment
Joey Hess [Tue, 15 Aug 2023 17:21:28 +0000 (13:21 -0400)]
comment

2 years agofix empty tree import when directory does not exist
Joey Hess [Tue, 15 Aug 2023 16:57:41 +0000 (12:57 -0400)]
fix empty tree import when directory does not exist

Fix behavior when importing a tree from a directory remote when the
directory does not exist. An empty tree was imported, rather than the
import failing. Merging that tree would delete every file in the
branch, if those files had been exported to the directory before.

The problem was that dirContentsRecursive returned [] when the directory
did not exist. Better for it to throw an exception. But in commit
74f0d67aa3988a71f3a53b88de4344272d924b95 back in 2012, I made it never
theow exceptions, because exceptions throw inside unsafeInterleaveIO become
untrappable when the list is being traversed.

So, changed it to list the contents of the directory before entering
unsafeInterleaveIO. So exceptions are thrown for the directory. But still
not if it's unable to list the contents of a subdirectory. That's less of a
problem, because the subdirectory does exist (or if not, it got removed
after being listed, and it's ok to not include it in the list). A
subdirectory that has permissions that don't allow listing it will have its
contents omitted from the list still.

(Might be better to have it return a type that includes indications of
errors listing contents of subdirectories?)

The rest of the changes are making callers of dirContentsRecursive
use emptyWhenDoesNotExist when they relied on the behavior of it not
throwing an exception when the directory does not exist. Note that
it's possible some callers of dirContentsRecursive that used to ignore
permissions problems listing a directory will now start throwing exceptions
on them.

The fix to the directory special remote consisted of not making its
call in listImportableContentsM use emptyWhenDoesNotExist. So it will
throw an exception as desired.

Sponsored-by: Joshua Antonishen on Patreon
2 years agoremove unused imports
Joey Hess [Tue, 15 Aug 2023 16:43:26 +0000 (12:43 -0400)]
remove unused imports

3 years agochange sync content transition plan and fine tune warning
Joey Hess [Mon, 14 Aug 2023 17:51:35 +0000 (13:51 -0400)]
change sync content transition plan and fine tune warning

Only display warning when git-annex sync (without --content or
--no-content) is used with repositories that have preferred content
configured.

Sponsored-by: Leon Schuermann on Patreon
3 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 14 Aug 2023 16:29:53 +0000 (12:29 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

3 years agosplit out Utility.Url.Parse
Joey Hess [Mon, 14 Aug 2023 16:28:10 +0000 (12:28 -0400)]
split out Utility.Url.Parse

This is mostly for git-repair which can't include all of Utility.Url
without adding many dependencies that are not really necessary.

3 years agoinclude system that i forgot in report
aurtzy [Sun, 13 Aug 2023 19:48:46 +0000 (19:48 +0000)]
include system that i forgot in report

3 years ago(no commit message)
aurtzy [Fri, 11 Aug 2023 01:22:30 +0000 (01:22 +0000)]

3 years agoAdded a comment
nobodyinperson [Thu, 10 Aug 2023 01:08:16 +0000 (01:08 +0000)]
Added a comment

3 years ago(no commit message)
anarcat [Thu, 10 Aug 2023 00:37:15 +0000 (00:37 +0000)]

3 years ago(no commit message)
anarcat [Thu, 10 Aug 2023 00:36:56 +0000 (00:36 +0000)]

3 years agoAdd git-annex remote refs that are not newer to the merged refs list
Joey Hess [Wed, 9 Aug 2023 17:30:43 +0000 (13:30 -0400)]
Add git-annex remote refs that are not newer to the merged refs list

Significant startup speed increase by avoiding repeatedly checking if some
remote git-annex branch refs need to be merged when it is not newer.

One way this could happen is when there are 2 remotes that are themselves
connected. The git-annex branch on the first remote gets updated. Then the
second remote pulls from the first, and merges in its git-annex branch.
Then the local repo pulls from the second remote, and merges its git-annex
branch. At this point, a pull from the first remote will get a git-annex
branch that is not newer, but is not on the merged refs list.

In my big repo, git-annex startup time dropped from 4 seconds to 0.1 seconds.
There were 5 to 10 such remote refs out of 18 remotes.

Sponsored-by: Graham Spencer on Patreon
3 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 9 Aug 2023 16:43:56 +0000 (12:43 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

3 years agoinfo: Added --dead-repositories option
Joey Hess [Wed, 9 Aug 2023 16:43:48 +0000 (12:43 -0400)]
info: Added --dead-repositories option

I considered a more wide-ranging config option to make other commands
also show dead repositories. But it would be difficult to implement that
because Remote.keyLocations is used to get locations, filtering out dead
repos, and commands like get then try to use those locations. So a config
setting would make dead repos sometimes be acted on by commands.

Sponsored-by: unqueued on Patreon
3 years agoAdded a comment
nobodyinperson [Wed, 9 Aug 2023 05:31:26 +0000 (05:31 +0000)]
Added a comment

3 years agoclosing dup
Joey Hess [Tue, 8 Aug 2023 17:45:37 +0000 (13:45 -0400)]
closing dup

3 years agocomment
Joey Hess [Tue, 8 Aug 2023 17:43:04 +0000 (13:43 -0400)]
comment

3 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 8 Aug 2023 17:11:07 +0000 (13:11 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

3 years agofix link
Joey Hess [Tue, 8 Aug 2023 17:11:00 +0000 (13:11 -0400)]
fix link

3 years agolink
Joey Hess [Tue, 8 Aug 2023 17:08:56 +0000 (13:08 -0400)]
link

3 years agoAdded a comment
jkniiv [Tue, 8 Aug 2023 16:38:53 +0000 (16:38 +0000)]
Added a comment

3 years agoFix behavior of onlyingroup
Joey Hess [Mon, 7 Aug 2023 17:05:11 +0000 (13:05 -0400)]
Fix behavior of onlyingroup

Sponsored-by: k0ld on Patreon
3 years agoremoved
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:20:55 +0000 (07:20 +0000)]
removed

3 years agoremoved
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:20:40 +0000 (07:20 +0000)]
removed

3 years agoremoved
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:20:25 +0000 (07:20 +0000)]
removed

3 years agoAdded a comment
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:57 +0000 (07:19 +0000)]
Added a comment

3 years agoAdded a comment
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:46 +0000 (07:19 +0000)]
Added a comment

3 years agoAdded a comment
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:35 +0000 (07:19 +0000)]
Added a comment

3 years agoAdded a comment
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:25 +0000 (07:19 +0000)]
Added a comment

3 years agoreport on --onlyingroup only partially working
jkniiv [Sat, 5 Aug 2023 11:15:30 +0000 (11:15 +0000)]
report on --onlyingroup only partially working

3 years agouse new bloomfilter release
Joey Hess [Fri, 4 Aug 2023 21:14:04 +0000 (17:14 -0400)]
use new bloomfilter release

Build with new ghc and also fixes a bug on 32 bit

3 years agocomment
Joey Hess [Fri, 4 Aug 2023 16:31:51 +0000 (12:31 -0400)]
comment

3 years agoupdate
Joey Hess [Thu, 3 Aug 2023 16:42:08 +0000 (12:42 -0400)]
update

3 years agoadd news item for git-annex 10.20230802
Joey Hess [Wed, 2 Aug 2023 20:09:26 +0000 (16:09 -0400)]
add news item for git-annex 10.20230802

3 years agoreleasing package git-annex version 10.20230802
Joey Hess [Wed, 2 Aug 2023 20:09:14 +0000 (16:09 -0400)]
releasing package git-annex version 10.20230802

3 years agowindows back to lts-18.13 temporarily
Joey Hess [Wed, 2 Aug 2023 16:48:12 +0000 (12:48 -0400)]
windows back to lts-18.13 temporarily

I can't seem to get stack to resolve dependencies with Win32-2.13.4.0,
no matter what I try. Why it blows up, I don't know.

And allow-newer: true actually causes it to downgrade Win32 to the one
version that won't build. Unbelivable that allows downgrades.

So just gonna have to wait for that to get into stackage nightly, and
then stack.yaml can be updated to use that, and the changes in this
commit reverted.

3 years agoremove support for building with older Win32
Joey Hess [Wed, 2 Aug 2023 15:59:57 +0000 (11:59 -0400)]
remove support for building with older Win32

No need to preserve this since the cabal file depends on the newer one.

3 years agorelocate BLOCK.txt to move convenient location
Joey Hess [Wed, 2 Aug 2023 15:58:07 +0000 (11:58 -0400)]
relocate BLOCK.txt to move convenient location

3 years agofix stack build on windows
Joey Hess [Wed, 2 Aug 2023 15:50:12 +0000 (11:50 -0400)]
fix stack build on windows

For whatever reason, putting Win32-2.13.4.0 in stack.yaml results in
stack blowing up with many unrelated dependency problems.
But making git-annex depend on that version lets stack resolve deps.

3 years agopin win32 to working version
Joey Hess [Wed, 2 Aug 2023 14:48:23 +0000 (10:48 -0400)]
pin win32 to working version

3 years agofix build on windows
Joey Hess [Wed, 2 Aug 2023 14:43:20 +0000 (10:43 -0400)]
fix build on windows

3 years agoavoid cpp failure on windows
Joey Hess [Wed, 2 Aug 2023 14:08:00 +0000 (10:08 -0400)]
avoid cpp failure on windows

Seems that while the module is not imported by anything on windows, it
still gets cpped, and MIN_VERSION_unix is not defined so it failed to
preprocess.

3 years agoenable TypeOperators
Joey Hess [Wed, 2 Aug 2023 13:47:42 +0000 (09:47 -0400)]
enable TypeOperators

more warnings about ~ needing it in a future ghc release

3 years agoadd back utf8-string to setup build deps
Joey Hess [Wed, 2 Aug 2023 13:29:23 +0000 (09:29 -0400)]
add back utf8-string to setup build deps

Needed on Windows since Utility.FileSystemEncoding uses it

3 years agofix hang when built with unix-2.8
Joey Hess [Wed, 2 Aug 2023 00:17:29 +0000 (20:17 -0400)]
fix hang when built with unix-2.8

git-annex test hang when running git-annex add in an adjusted unlocked
branch. I couldn't seem to reproduce the hang outside the test suite.

Seems that the code added in 26a9ea12d11f85b43987d863449c790f7320d9d1
was buggy, and as that commit was made without testing it, building with
unix-2.8 exposed the bug.

I don't fully understand the bug, which involves fdToHandle
and then closing the fd, vs closing the handle. May somehow involve
laziness or forcing around the S.hGet? Using hClose solved it
in any case.

(Also eliminated checkcontentfollowssymlinks to fix a build warning
when it's not used.)

3 years agostack.yaml: Update to build with ghc-9.6.2 and aws-0.24
Joey Hess [Tue, 1 Aug 2023 22:53:26 +0000 (18:53 -0400)]
stack.yaml: Update to build with ghc-9.6.2 and aws-0.24

This enables some new features that need the new aws.

Use http-client-restricted-0.1.0 because it uses the crypton side of the
cryptonite/crypton fork, which seems to be needed for ghc-9.6.2.

Dependency on connection removed because of the cryptonite/crypton fork.
This avoids needing a build flag. It was only used to throw a typed
exception in Utility.Url, which nothing depended on.

Used a fork of bloomfilter because it's not being maintained and no longer
builds as-of this ghc version. (I have been trying to contact its
maintainer about it, and emailed him today suggesting I take over the
package.)

Sponsored-by: Brock Spratlen on Patreon
3 years agofix build with unix-2.8.0
Joey Hess [Tue, 1 Aug 2023 22:41:27 +0000 (18:41 -0400)]
fix build with unix-2.8.0

Changed the parameters to openFd. So needed to add a small wrapper
library to keep supporting older versions as well.

3 years agoenable TypeOperators
Joey Hess [Tue, 1 Aug 2023 22:39:01 +0000 (18:39 -0400)]
enable TypeOperators

3 years agofix whitespace
Joey Hess [Tue, 1 Aug 2023 22:36:54 +0000 (18:36 -0400)]
fix whitespace

Thanks to a compile warning from new ghc

3 years agoenable TypeOperators
Joey Hess [Tue, 1 Aug 2023 22:33:39 +0000 (18:33 -0400)]
enable TypeOperators

    The use of ‘~’ without TypeOperators
    will become an error in a future GHC release.

says new ghc

3 years agofix build with unix-2.8.0
Joey Hess [Tue, 1 Aug 2023 22:27:12 +0000 (18:27 -0400)]
fix build with unix-2.8.0

got the arguments the wrong way around when I wrote this

also squelch a build warning

3 years agofix build with unix-2.8.0
Joey Hess [Tue, 1 Aug 2023 21:47:30 +0000 (17:47 -0400)]
fix build with unix-2.8.0

It made UserInfo into a pattern to discourage manually constructing
them, so just to use UserInfo in a type signature of a function that
consumes them, have to import the new ByteString module.

3 years agofix build on windows
Joey Hess [Tue, 1 Aug 2023 21:38:59 +0000 (17:38 -0400)]
fix build on windows

3 years agorewrap
Joey Hess [Tue, 1 Aug 2023 19:47:05 +0000 (15:47 -0400)]
rewrap

3 years agosupport building with unix-compat 0.7
Joey Hess [Tue, 1 Aug 2023 19:17:43 +0000 (15:17 -0400)]
support building with unix-compat 0.7

It removed System.PosixCompat.User.

3 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 1 Aug 2023 19:17:07 +0000 (15:17 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

3 years agoSetup.hs: Stop installing man pages, desktop files, and the git-annex-shell and git...
Joey Hess [Tue, 1 Aug 2023 19:08:56 +0000 (15:08 -0400)]
Setup.hs: Stop installing man pages, desktop files, and the git-annex-shell and git-remote-tor-annex symlinks

Anything still relying on that, eg via cabal v1-install will need to
change to using make install-home. Which was added back in 2019 in
6491b626140a9e5cc8e99fff4a1434d7c0e9bc39 because cabal new-build
(now the default) already didn't use Setup in a way that let its
installation of those things work.

Notably this means Setup does not need to depend on unix-compat, which is
useful because in 0.7 it removed System.PosixCompat.User, which Setup
needed to determine where to install the desktop files. See
https://github.com/haskell-pkg-janitors/unix-compat/issues/3

3 years ago(no commit message)
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Tue, 1 Aug 2023 06:36:50 +0000 (06:36 +0000)]

3 years agoAdd missing formatting backtick
nobodyinperson [Tue, 1 Aug 2023 05:32:19 +0000 (05:32 +0000)]
Add missing formatting backtick

3 years agoonlyingroup
Joey Hess [Mon, 31 Jul 2023 18:43:58 +0000 (14:43 -0400)]
onlyingroup

* Support "onlyingroup=" in preferred content expressions.
* Support --onlyingroup= matching option.

Sponsored-by: Jack Hill on Patreon
3 years agofoo
Joey Hess [Mon, 31 Jul 2023 18:03:18 +0000 (14:03 -0400)]
foo

3 years agocomment
Joey Hess [Mon, 31 Jul 2023 18:01:33 +0000 (14:01 -0400)]
comment

3 years agocomment
Joey Hess [Mon, 31 Jul 2023 17:50:12 +0000 (13:50 -0400)]
comment

3 years agomention --explain
Joey Hess [Mon, 31 Jul 2023 17:28:02 +0000 (13:28 -0400)]
mention --explain

Sponsored-by: Dartmouth College's DANDI project
3 years agodisplay explanations in --debug too
Joey Hess [Mon, 31 Jul 2023 17:06:40 +0000 (13:06 -0400)]
display explanations in --debug too

When --explain is not enabled. This can be useful debugging information
as well.

Sponsored-by: Dartmouth College's DANDI project
3 years ago--explain for numcopies checks
Joey Hess [Mon, 31 Jul 2023 16:36:13 +0000 (12:36 -0400)]
--explain for numcopies checks

And closed the todo as completed.

Sponsored-by: Dartmouth College's DANDI project
3 years agoAdded a comment: onlyingroup also useful for offline backup drives
nobodyinperson [Mon, 31 Jul 2023 04:40:43 +0000 (04:40 +0000)]
Added a comment: onlyingroup also useful for offline backup drives

3 years agoAdded a comment
nobodyinperson [Sun, 30 Jul 2023 06:53:58 +0000 (06:53 +0000)]
Added a comment

3 years ago(no commit message)
branch [Sat, 29 Jul 2023 21:35:16 +0000 (21:35 +0000)]

3 years agoAdded a comment: No built-in way for dropping all old versions of a file AFAIK
nobodyinperson [Sat, 29 Jul 2023 17:43:41 +0000 (17:43 +0000)]
Added a comment: No built-in way for dropping all old versions of a file AFAIK

3 years agoSuggest that git annex diffdriver fetches content to diff
nobodyinperson [Sat, 29 Jul 2023 17:07:22 +0000 (17:07 +0000)]
Suggest that git annex diffdriver fetches content to diff

3 years agoAdded a comment: Dropping all older versions of a file
mario [Sat, 29 Jul 2023 12:57:03 +0000 (12:57 +0000)]
Added a comment: Dropping all older versions of a file

3 years agoAdded a comment
aragilar [Fri, 28 Jul 2023 02:47:42 +0000 (02:47 +0000)]
Added a comment

3 years agoAdded a comment: --explain is very helpful 👍
nobodyinperson [Thu, 27 Jul 2023 15:22:47 +0000 (15:22 +0000)]
Added a comment: --explain is very helpful 👍

3 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 26 Jul 2023 19:44:47 +0000 (15:44 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

3 years agoimprove match explanations
Joey Hess [Wed, 26 Jul 2023 19:29:23 +0000 (15:29 -0400)]
improve match explanations

Using == and != proved too hard to read, so went with [TRUE] and [FALSE]
after the term. I would kind of liked to have used emojis for a green
check and red X, but probably that is too fancy to be a good idea.

Make --explain output be inside [ ] with whitespace around them, to
avoid it ending with eg "[FALSE]]" and to make it easier to visually
find the start of it.

Sponsored-by: Dartmouth College's DANDI project
3 years agoimprove match result display simplifier
Joey Hess [Wed, 26 Jul 2023 19:28:57 +0000 (15:28 -0400)]
improve match result display simplifier

Sponsored-by: Dartmouth College's DANDI project
3 years agofix bug in match result display simplifier
Joey Hess [Wed, 26 Jul 2023 19:07:29 +0000 (15:07 -0400)]
fix bug in match result display simplifier

Sponsored-by: Dartmouth College's DANDI project
3 years ago--explain for preferred/required content matching
Joey Hess [Wed, 26 Jul 2023 18:34:21 +0000 (14:34 -0400)]
--explain for preferred/required content matching

And annex.largefiles and annex.addunlocked.

Also git-annex matchexpression --explain explains why its input
expression matches or fails to match.

When there is no limit, avoid explaining why the lack of limit
matches. This is also done when no preferred content expression is set,
although in a few cases it defaults to a non-empty matcher, which will
be explained.

Sponsored-by: Dartmouth College's DANDI project
3 years agoAdded a comment: Workaround for listing dead remotes
nobodyinperson [Wed, 26 Jul 2023 17:40:56 +0000 (17:40 +0000)]
Added a comment: Workaround for listing dead remotes

3 years ago(no commit message)
aragilar [Wed, 26 Jul 2023 12:56:21 +0000 (12:56 +0000)]

3 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 25 Jul 2023 21:02:18 +0000 (17:02 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

3 years agoinitial implementation of --explain
Joey Hess [Tue, 25 Jul 2023 20:11:06 +0000 (16:11 -0400)]
initial implementation of --explain

Currently it only displays explanations of options like --in and --copies.

In the future, it should explain preferred content expression evaluation
and other decisions.

The explanations of a few things could be better. In particular,
"standard" will just appear as-is (or as "!standard" if it doesn't
match), rather than explaining why the standard preferred content expression
for the group matches or not.

Currently as implemented, it goes to stdout, and so commands like
git-annex find that have custom output will not display --explain
information. Perhaps that should change, dunno.

Sponsored-by: Dartmouth College's DANDI project
3 years agoRevert "use existing debug machinery for explain"
Joey Hess [Tue, 25 Jul 2023 19:53:50 +0000 (15:53 -0400)]
Revert "use existing debug machinery for explain"

This reverts commit 409572c9e4c0c77814a5b448d26cf87054b07874.

3 years agouse existing debug machinery for explain
Joey Hess [Tue, 25 Jul 2023 19:47:58 +0000 (15:47 -0400)]
use existing debug machinery for explain

explain is a kind of debug message, but not formatted in the same way.
So it makes sense to reuse the debug machinery for it, since that is
already quite optimised.

Sponsored-by: Dartmouth College's DANDI project
3 years agoremove excess doubled parens in match description
Joey Hess [Tue, 25 Jul 2023 17:55:01 +0000 (13:55 -0400)]
remove excess doubled parens in match description

Sponsored-by: Dartmouth College's DANDI project
3 years agoparenthesize match description as needed to avoid ambiguity
Joey Hess [Tue, 25 Jul 2023 17:39:40 +0000 (13:39 -0400)]
parenthesize match description as needed to avoid ambiguity

While avoiding most unncessary parens.

Once case where unncessary parens are not avoided is:

not ( ( not foo and baz ) )

It would be good eventually to remove doubled parens like these.

Sponsored-by: Dartmouth College's DANDI project
3 years agolist some Utility/ modules that are AGPL
Joey Hess [Tue, 25 Jul 2023 16:54:44 +0000 (12:54 -0400)]
list some Utility/ modules that are AGPL

3 years agoaccumulate description while matching
Joey Hess [Tue, 25 Jul 2023 16:41:59 +0000 (12:41 -0400)]
accumulate description while matching

This is to be used to explain why something did or didn't match.

Note that this reimplements match in terms of matchMrun.
Implementing match' as a Writer and matchMrun' as a MonadWriter
resulted in nearly identical implementations, which collapsed into the
same thing thanks to Writer being WriterT Identity.

MAnd and MOr implement short circuiting. So an expression
like "not (foo and bar)" will be explained as [MatchedNot, MatchOperation "foo"]
when foo does not match; whether bar matches is irrelevant. Similarly
"foo or bar" will be explained as [MatchedOperation "foo"] when foo
matches. It seems like that will keep the explanations more
understandable. But also, matchMrun already did short circuiting, and it
could be considerably more work to check if bar matches in these cases.

Note that the type signature of matchMrun changed, but it was
over-generic before.

Note that these changes are licensed under the AGPL. Changed module
license accordingly.

Sponsored-by: Dartmouth College's DANDI project
3 years agotag option_to_explain dandi
Joey Hess [Tue, 25 Jul 2023 15:08:33 +0000 (11:08 -0400)]
tag option_to_explain dandi

See comment, this is a continuation of the other todo that was tagged
dandi and which I didn't fully address at the time.

3 years agoAdded a comment
hurlebouc [Mon, 24 Jul 2023 13:10:09 +0000 (13:10 +0000)]
Added a comment

3 years agogcrypt: Remove empty hash directories when dropping content
Joey Hess [Fri, 21 Jul 2023 20:04:11 +0000 (16:04 -0400)]
gcrypt: Remove empty hash directories when dropping content

As was recently done with the directory special remote.

Note that the top directory passed to removeDirGeneric was changed to
avoid deleting .git/annex or .git/annex/objects if they ended up empty.

Sponsored-by: Brett Eisenberg on Patreon
3 years agotypo
Joey Hess [Fri, 21 Jul 2023 19:36:01 +0000 (15:36 -0400)]
typo

3 years agocomment
Joey Hess [Fri, 21 Jul 2023 19:33:59 +0000 (15:33 -0400)]
comment

3 years agoremove spam
Joey Hess [Fri, 21 Jul 2023 19:15:11 +0000 (15:15 -0400)]
remove spam

3 years agocomment
Joey Hess [Fri, 21 Jul 2023 19:14:36 +0000 (15:14 -0400)]
comment

3 years agodirectory: Remove empty hash directories when dropping content
Joey Hess [Fri, 21 Jul 2023 18:57:29 +0000 (14:57 -0400)]
directory: Remove empty hash directories when dropping content

Failure to remove is not treated as a problem, and no permissions
modifications are done, to avoid unexpected states.

Sponsored-by: Luke Shumaker on Patreon
3 years agodropunused: Support --jobs
Joey Hess [Fri, 21 Jul 2023 18:03:34 +0000 (14:03 -0400)]
dropunused: Support --jobs

Sponsored-by: Kevin Mueller on Patreon
3 years agodeal with Amazon S3 breaking change for public=yes
Joey Hess [Fri, 21 Jul 2023 17:48:49 +0000 (13:48 -0400)]
deal with Amazon S3 breaking change for public=yes

* S3: Amazon S3 buckets created after April 2023 do not support ACLs,
  so public=yes cannot be used with them. Existing buckets configured
  with public=yes will keep working.
* S3: Allow setting publicurl=yes without public=yes, to support
  buckets that are configured with a Bucket Policy that allows public
  access.

Sponsored-by: Joshua Antonishen on Patreon
3 years agocomment
Joey Hess [Fri, 21 Jul 2023 17:01:46 +0000 (13:01 -0400)]
comment