git-annex/Assistant/Threads
Joey Hess d689a5b338
git style filename quoting controlled by core.quotePath
This is by no means complete, but escaping filenames in actionItemDesc does
cover most commands.

Note that for ActionItemBranchFilePath, the value is branch:file, and I
choose to only quote the file part (if necessary). I considered quoting the
whole thing. But, branch names cannot contain control characters, and while
they can contain unicode, git coes not quote unicode when displaying branch
names. So, it would be surprising for git-annex to quote unicode in a
branch name.

The find command is the most obvious command that still needs to be
dealt with. There are probably other places that filenames also get
displayed, eg embedded in error messages.

Some other commands use ActionItemOther with a filename, I think that
ActionItemOther should either be pre-sanitized, or should explicitly not
be used for filenames, so that needs more work.

When --json is used, unicode does not get escaped, but control
characters were already escaped in json.

(Key escaping may turn out to be needed, but I'm ignoring that for now.)

Sponsored-by: unqueued on Patreon
2023-04-08 14:52:26 -04:00
..
Committer.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
ConfigMonitor.hs add git ls-tree --long parser 2021-03-23 12:47:00 -04:00
Cronner.hs assistant: Avoid unncessary git repository repair 2021-06-30 18:00:16 -04:00
DaemonStatus.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Exporter.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Glacier.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Merger.hs improve createDirectoryUnder to allow alternate top directories 2022-08-12 12:52:37 -04:00
MountWatcher.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
NetWatcher.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
PairListener.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
ProblemFixer.hs assistant: Avoid unncessary git repository repair 2021-06-30 18:00:16 -04:00
Pusher.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
RemoteControl.hs convert to withCreateProcess for async exception safety 2020-06-04 12:44:09 -04:00
SanityChecker.hs Windows: Support long filenames in more (possibly all) of the code 2023-03-01 15:55:58 -04:00
TransferPoller.hs convert getFileSize to RawFilePath 2020-11-05 11:32:57 -04:00
Transferrer.hs propagate git-annex -c on to transferrer child process 2020-12-15 11:36:25 -04:00
TransferScanner.hs new matching options --want-get-by and --want-drop-by 2022-07-28 13:26:03 -04:00
TransferWatcher.hs git style filename quoting controlled by core.quotePath 2023-04-08 14:52:26 -04:00
Upgrader.hs fix windows assistant upgrade glitch 2020-11-19 12:50:25 -04:00
UpgradeWatcher.hs finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -04:00
Watcher.hs Windows: Support long filenames in more (possibly all) of the code 2023-03-01 15:55:58 -04:00
WebApp.hs switch from hslogger to purpose-built Utility.Debug 2021-04-05 13:40:31 -04:00