git-annex/Backend
Joey Hess 2ff716be30
OsPath build flag no longer depends on filepath-bytestring
However, filepath-bytestring is still in Setup-Depends.
That's because Utility.OsPath uses it when not built with OsPath.
It would be maybe possible to make Utility.OsPath fall back to using
filepath, and eliminate that dependency too, but it would mean either
wrapping all of System.FilePath's functions, or using `type OsPath = FilePath`

Annex.Import uses ifdefs to avoid converting back to FilePath when not
on windows. On windows it's a bit slower due to that conversion.
Utility.Path.Windows.convertToWindowsNativeNamespace got a bit
slower too, but not really worth optimising I think.

Note that importing Utility.FileSystemEncoding at the same time as
System.Posix.ByteString will result in conflicting definitions for
RawFilePath. filepath-bytestring avoids that by importing RawFilePath
from System.Posix.ByteString, but that's not possible in
Utility.FileSystemEncoding, since Setup-Depends does not include unix.
This turned out not to affect any code in git-annex though.

Sponsored-by: Leon Schuermann
2025-02-10 16:39:55 -04:00
..
VURL more OsPath conversion 2025-02-01 14:06:38 -04:00
External.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
GitRemoteAnnex.hs more OsPath conversion 2025-01-29 11:53:20 -04:00
Hash.hs OsPath build flag no longer depends on filepath-bytestring 2025-02-10 16:39:55 -04:00
URL.hs implement URL to VURL migration 2024-03-01 16:42:02 -04:00
Utilities.hs OsPath build flag no longer depends on filepath-bytestring 2025-02-10 16:39:55 -04:00
Variety.hs remove read of the heads 2024-09-26 18:43:59 -04:00
VURL.hs VURL verifyKeyContent True when there are no recorded equivkeys 2025-01-03 17:24:30 -04:00
WORM.hs more OsPath conversion 2025-01-29 11:53:20 -04:00