Commit graph

35,290 commits

Author SHA1 Message Date
Atemu
61c97b7460 Added a comment 2025-01-26 13:30:10 +00:00
jnkl
0dedb8077b Added a comment 2025-01-26 13:09:05 +00:00
luciusf
ff7a5eab63 Some clarifications in my reproduce steps about the state of the rsync remote 2025-01-26 11:29:02 +00:00
luciusf
d2d52136c7 rename bugs/rsyncurl_without___34____58____34___creates_local_folder_as_repo.mdwn to bugs/rsyncurl_without___34____58____34___creates_local_folder_as_remote.mdwn 2025-01-26 11:19:53 +00:00
luciusf
f0701123cf Initial post 2025-01-26 11:18:11 +00:00
goglu6
e09f48b948 2025-01-26 03:02:03 +00:00
Atemu
2d6b31713a Added a comment 2025-01-26 02:54:18 +00:00
Atemu
3ad4096686 Added a comment 2025-01-26 02:36:51 +00:00
Joey Hess
0cfeea5baf
Merge branch 'master' into ospath 2025-01-25 10:57:13 -04:00
Joey Hess
f9d42c37c0
more OsPath conversion
Finally reached Annex code in this conversion.

Sponsored-by: Graham Spencer
2025-01-25 10:54:51 -04:00
jnkl
9d122a8ff5 2025-01-25 12:00:20 +00:00
jnkl
07a726e0fe Added a comment 2025-01-25 11:49:29 +00:00
Joey Hess
639d19dbd1
Merge branch 'master' of ssh://git-annex.branchable.com 2025-01-24 11:39:43 -04:00
beryllium@5bc3c32eb8156390f96e363e4ba38976567425ec
f1b64f0415 Added a comment 2025-01-24 08:04:27 +00:00
yarikoptic
103ec0123f Added a comment 2025-01-23 21:33:26 +00:00
yarikoptic
e8f984598a complaining about dead 2025-01-23 16:12:18 +00:00
yarikoptic
f0b5fce5ab Added a comment 2025-01-23 15:53:39 +00:00
Joey Hess
c1ecb80716
update 2025-01-23 10:27:18 -04:00
Joey Hess
d46504e51e
response 2025-01-22 16:48:51 -04:00
Joey Hess
f41054b108
Merge branch 'master' of ssh://git-annex.branchable.com 2025-01-22 16:42:50 -04:00
Joey Hess
77e9781ae2
parsePOSIXTime ByteString conversion
Some easy (though tiny) speed wins.

Sponsored-by: Luke T. Shumaker on Patreon
2025-01-22 16:42:09 -04:00
Joey Hess
6e27b0d4d1
convert from readFileStrict
This removes that function, using file-io readFile' instead.

Had to deal with newline conversion, which readFileStrict does on
Windows. In a few cases, that was pretty ugly to deal with.

Sponsored-by: Kevin Mueller
2025-01-22 16:20:36 -04:00
Joey Hess
9b79f0f43d
use file-io for readFile/writeFile/appendFile on ByteStrings
These are all straightforward, and easy small performance wins.

Sponsored-by: Nicholas Golder-Manning
2025-01-22 14:30:25 -04:00
Joey Hess
90cd3aad37
RawFilePath conversion for replaceFile
Sponsored-by: Joshua Antonishen
2025-01-22 13:37:26 -04:00
Joey Hess
793ddecd4b
use openTempFile from file-io
And follow-on changes.

Note that relatedTemplate was changed to operate on a RawFilePath, and
so when it counts the length, it is now the number of bytes, not the
number of code points. This will just make it truncate shorter strings
in some cases, the truncation is still unicode aware.

When not building with the OsPath flag, toOsPath . fromRawFilePath and
fromRawFilePath . fromOsPath do extra conversions back and forth between
String and ByteString. That overhead could be avoided, but that's the
non-optimised build mode, so didn't bother.

Sponsored-by: unqueued
2025-01-22 11:41:43 -04:00
jnkl
7d215db99e rename forum/reupload_existing_files_to_bare_repo.mdwn to forum/reuploads_existing_files_to_bare_repo.mdwn 2025-01-22 07:28:13 +00:00
jnkl
344d750590 2025-01-22 07:26:34 +00:00
nobodyinperson
360b2e0286 Added a comment: Exporting a synced/* branch works now! 🥳 2025-01-21 18:30:50 +00:00
Joey Hess
1faa3af9cd
add file-io to build-depends when building with OsPath flag
Partly converted code to use functions from it, though more remain
unconverted. Most of withFile and openFile now use it.
2025-01-21 14:26:04 -04:00
Joey Hess
1ceece3108
RawFilePath conversion of System.Directory
By using System.Directory.OsPath, which takes and returns OsString,
which is a ShortByteString. So, things like dirContents currently have the
overhead of copying that to a ByteString, but that should be less than
the overhead of using Strings which often in turn were converted to
RawFilePaths.

Added Utility.OsString and the OsString build flag. That flag is turned
on in the stack.yaml, and will be turned on automatically by cabal when
built with new enough libraries. The stack.yaml change is a bit ugly,
and that could be reverted for now if it causes any problems.

Note that Utility.OsString.toOsString on windows is avoiding only a
check of encoding that is documented as being unlikely to fail. I don't
think it can fail in git-annex; if it could, git-annex didn't contain
such an encoding check before, so at worst that should be a wash.
2025-01-20 19:17:33 -04:00
Joey Hess
8d80b07f5a
update 2025-01-20 14:20:35 -04:00
Joey Hess
fbdf640b09
update 2025-01-20 13:58:14 -04:00
Joey Hess
9e4314de76
relax annex-tracking-branch to allow "/"
Allow setting remote.foo.annex-tracking-branch to a branch name that
contains "/", as long as it's not a remote tracking branch.
2025-01-20 11:31:18 -04:00
Joey Hess
b1c9c9d6e7
Merge branch 'master' of ssh://git-annex.branchable.com 2025-01-20 11:12:56 -04:00
nobodyinperson
6602c1116a Report bug that one can't export synced/ branches 2025-01-20 10:25:51 +00:00
Joey Hess
524298d983
Merge branch 'master' of ssh://git-annex.branchable.com 2025-01-17 11:11:55 -04:00
hello@da0030bba070302e85904b4d73db61fb4af7bced
ad974c3bd2 Added a comment: Feature idea 2025-01-17 11:14:55 +00:00
hello@da0030bba070302e85904b4d73db61fb4af7bced
159496a0c6 2025-01-17 11:11:51 +00:00
goglu6
171de7c00e 2025-01-17 06:30:22 +00:00
goglu6
5d370fdfec 2025-01-17 06:29:39 +00:00
goglu6
a1641206de 2025-01-17 06:24:07 +00:00
goglu6
8ec6d7cfdd 2025-01-17 06:23:41 +00:00
goglu6
1d58c62da8 2025-01-17 05:13:55 +00:00
goglu6
92ba4c915d 2025-01-17 05:12:14 +00:00
hello@da0030bba070302e85904b4d73db61fb4af7bced
f47ee1f7c0 Added a comment: Still happening, managed to get a reproduction (maybe ?) 2025-01-16 18:17:52 +00:00
Joey Hess
836f58cbc7
comment 2025-01-15 19:13:15 -04:00
Joey Hess
84cd166805
add news item for git-annex 10.20250115 2025-01-15 12:38:35 -04:00
Joey Hess
6bad6d4a47
arm autobuild moved to sparrow 2025-01-15 12:18:11 -04:00
Joey Hess
bd5d7e936d
Merge branch 'master' of ssh://git-annex.branchable.com 2025-01-13 14:24:28 -04:00
Joey Hess
42d55bc57c
pre-init config and hook
Added annex.pre-init-command git config and pre-init-annex hook that is run
before git-annex repository initialization.

This can block initialization. Or it can preform pre-initialization
configuration or tweaking.

I left stdio connected while it's running, so it could also be used for
interactive prompting conceivably, although that would want to use /dev/tty
anyway probably in order to not pollute the stdout of a command when
automatic initialization is done.

Sponsored-by: Dartmouth College's OpenNeuro project
2025-01-13 14:22:49 -04:00