Commit graph

5,096 commits

Author SHA1 Message Date
matrss
af02ec8a22 Added a comment 2025-11-10 21:14:20 +00:00
Joey Hess
174e9db464
comment 2025-11-10 11:38:26 -04:00
Joey Hess
e29b5eedbf
dropunused: Run the annex.secure-erase-command
(or .git/hooks/secure-erase-annex) when deleting
temp and bad object files.

As was already done when deleting unlocked files.
2025-11-10 11:30:14 -04:00
Joey Hess
d845dda464
comment and related todo 2025-11-10 11:22:32 -04:00
matrss
f2bb720681 2025-11-10 11:10:46 +00:00
matrss
dbd4c8ae68 Added a comment 2025-10-29 17:38:12 +00:00
matrss
43d61078f1 2025-10-29 17:33:34 +00:00
matrss
4a4384579b 2025-10-29 17:31:27 +00:00
mih
13dcc3dd49 Propose emphemeral special remotes 2025-10-25 13:47:57 +00:00
cjmarkie
c0bc81891c 2025-10-25 13:47:47 +00:00
cjmarkie
293339e1fc Initiate request for request redirection 2025-10-25 13:24:47 +00:00
matrss
b9581f9124 Added a comment 2025-10-14 16:52:24 +00:00
Joey Hess
8ec4839e9c
comment 2025-10-14 11:48:32 -04:00
matrss
67695cda61 2025-10-13 12:42:48 +00:00
Joey Hess
8fa75475d8
comment 2025-10-02 13:43:43 -04:00
yarikoptic
c814026216 Added a comment 2025-10-01 20:18:44 +00:00
yarikoptic
f68b992263 complaining about choice of variable 2025-10-01 17:07:25 +00:00
Joey Hess
dce65adeca
comment 2025-10-01 12:03:54 -04:00
yarikoptic
c0ca10fef9 Added a comment 2025-10-01 13:09:01 +00:00
Joey Hess
33ab579243
comments 2025-09-30 10:58:01 -04:00
Joey Hess
e896e2c0d7
Revert "webapp: Remove support for local pairing"
This reverts commit 8ea6d7acc5.

Temporarily, until builds finish for today's release.
2025-09-29 15:53:38 -04:00
Joey Hess
8ea6d7acc5
webapp: Remove support for local pairing
As a feature only supported by the webapp, and not by git-annex at the
command line, this is by now a very obscure corner of git-annex, and not
one I want to keep maintaining.

It's worth removing it to avoid the security expsure alone. People using
the assistant w/o the webapp probably don't expect it to be listening on
a UDP port for a handrolled protocol, but it was.

The webapp has supported pairing via magic-wormhole since 2016, which
makes a link including between local computers, albeit with the overhead
of tor. That sort of covers the same use case. Of course advanced users
can easily enough add a ssh remote to their repository themselves, using
a hostname on the local network.

Sponsored-by: unqueued
2025-09-29 12:56:54 -04:00
Joey Hess
0b0e0613e8
comment 2025-09-29 11:13:26 -04:00
yarikoptic
fbecf650ae Added a comment 2025-09-27 17:27:51 +00:00
Joey Hess
b0cd91c707
update 2025-09-24 13:04:51 -04:00
Joey Hess
c688852cd1
comments 2025-09-24 12:54:20 -04:00
Arnie97
9cdf151525 Added a comment: the X prefix conflicts with the eXternal backend namespace 2025-09-24 12:05:05 +00:00
Joey Hess
92c4a34414
annex.assistant.allowunlocked
Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
2025-09-16 14:58:26 -04:00
Joey Hess
f8b360f59d
tag repronim based on https://git-annex.branchable.com/forum/Is_there_a_way_to_have_assistant_add_files_locked__63__/#comment-096bedb2d22d5aae6a51a53179372d4f 2025-09-16 13:45:36 -04:00
Joey Hess
7682106d55
close 2025-09-16 13:27:25 -04:00
Joey Hess
cbb4a2bf86
improve error message when SETCREDS overwrites git-annex config
That is not allowed, so it's not a bug in git-annex when it happens and
instead tell the special remote developer how it's messed up.

Note that currently only Remote.External can overwrite the parsed remote
config with a PassedThrough value. PassedThrough values are otherwise
only generated for configs that are not parsed by the remote config
parser.

Sponsored-by: Joshua Antonishen
2025-09-16 13:22:14 -04:00
Joey Hess
1e847fd1af
boot libs 2025-09-15 19:59:07 -04:00
Joey Hess
c87b1738fb
require_OsPath branch 2025-09-15 16:37:53 -04:00
Joey Hess
91dbcf0b56
fix p2phttp worker thread leak with deleted repository LOCKCONTENT
p2phttp: Fix a hang that could occur when used with --directory, and a
repository in the repository got removed.

It could leak up to -J number of worker threads, but this only affected a
client trying to access the deleted repository.

It may be that this could also affect a non-deleted repository, and also
leak a worker thread, if invalid p2p protocol is sent.
2025-09-15 12:03:44 -04:00
Joey Hess
4fd71c125e
Improve performance when used with a local git remote that has a large working tree
git write-tree was being run once per file git-annex acts on when eg,
getting files, which is slow when the remote repository has a large
tree.

onLocal calls quiesce after each action, and quiesce closes the keys db
since [[!commit ba7ecbc6a9c]]. Which has a relevant comment about
performance. I have not addressed that, the keys db still gets closed and
reopened after each file.

Turns out that, since git write-tree was run by each call to
reconcileStaged, the .git/annex/keysdb.cache value was never the
same as the git index's inode. Because git write-tree updates the index's
mtime even when no changes have been made.

And so, when the database got closed and reopened, reconcileStaged would
see a changed index, and run git write-tree again. Over and over.

I considered writing the index's new inodecache after write-tree to the
keysdb.cache, but that would be vulnerable to a race, if the index was
changed just after write-tree.

The fix was to stop using keysb.cache at all. When the database is closed
and later reopened by the same process, avoid re-doing reconcileStaged.

Now that .git/annex/keysdb.cache is no longer used. It could be removed,
but the time overhead of removing it would be more than the space overhead
of keeping it. Defferred removal to the v11 upgrade.

Sponsored-by: unqueued
2025-09-10 12:08:11 -04:00
yarikoptic
f5d2707b97 Added a comment 2025-09-09 12:47:26 +00:00
waldi5001
f82b71e725 Added a comment 2025-09-08 08:47:56 +00:00
Joey Hess
fe67756197
turn on OsPath build flag by default
It was already default in stack builds, now it is default in cabal
builds as well.

Add build warnings when git-annex is built without the OsPath build flag.

git-annex version: Report on whether it was built with the OsPath build flag.

Having the flag on by default was always the plan, and this is a good time to
make the change. A bit of added urgency comes from the close-on-exec leak
issue. Fixing that is going to need reimplentation of things like openFile.
Needing to reimplenment it twice is not very appealing, especially since the
FilePath version of it has an implementation that cannot be easily copied and
tweaked. If OsPath is on by default, I can start with only implementing
openFile for it, and fix the bug in that build. And perhaps avoid doing the
extra work that will later get thrown away when this transition finishes.

Note that at this point, Debian still needs to package file-io. Hopefully, they
will package it, rather than turning off the OsPath build flag.
2025-09-05 12:44:46 -04:00
Joey Hess
146d224c63
drop: --fast support when dropping from a remote
This is the same as --not --in $remote, but easier to type. And the
documentation of --fast helps also document that drop can do extra work
when used without --fast.

Sponsored-by: Nicholas Golder-Manning
2025-08-29 12:45:33 -04:00
Joey Hess
3788c48b32
todo 2025-08-29 11:13:29 -04:00
stv0g
4489ea9bc2 Added a comment: Feedback on encryptonlycreds=yes 2025-08-24 11:20:24 +00:00
Joey Hess
afff2bb47d
onlyencryptcreds=yes
initremote: When onlyencryptcreds=yes is used along with embedcreds=yes,
and encryption is enabled, only encrypt the embedded creds, without
encrypting the content of the special remote.

Useful for exporttree=yes/importtree=yes remotes.

Sponsored-by: Joshua Antonishen
2025-08-20 15:14:01 -04:00
Joey Hess
dbb207890d
comment 2025-08-20 14:16:29 -04:00
Joey Hess
16463f8f02
Merge branch 'master' of ssh://git-annex.branchable.com 2025-08-20 12:31:35 -04:00
stv0g
5d7a7e2562 Added a comment: encryption=credsonly 2025-08-18 17:07:40 +00:00
Joey Hess
ce8b32de07
update 2025-08-15 11:54:42 -04:00
Joey Hess
0924a45cc4
info: Added --show option
To pick which parts of the info to calculate and display.

Sponsored-by: Dartmouth College's DANDI project
2025-08-13 16:49:21 -04:00
Joey Hess
bcc86c92e2
comment 2025-08-13 16:04:46 -04:00
yarikoptic
ee7e1450b1 wishlist of faster/specific info for a remote 2025-08-13 17:49:20 +00:00
Joey Hess
786fa037c8
comment 2025-08-01 13:57:50 -04:00