File: day_262__DOS_path_separators.mdwn

package info (click to toggle)
git-annex 10.20230126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,344 kB
  • sloc: haskell: 74,654; javascript: 9,103; sh: 1,304; makefile: 203; perl: 136; ansic: 44
file content (14 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
It's remarkable that a bad decision made in 1982 can cause me to waste an
entire day in 2013. Yes, `/` vs `\` fun time. Even though I long ago
converted git-annex to use the haskell `</>` operator wherever it builds
up paths (which transparently handles either type of separator), I still
spent most of today dealing with it. Including some libraries I use that
get it wrong. Adding to the fun is that git uses `/` internally, even on
Windows, so Windows separated paths have to be converted when being fed
into git.

Anyway, `git annex add` now works on Windows. So does `git annex find`,
and `git annex whereis`, and probably most query stuff.

Today was very un-fun and left me with a splitting headache, so I will
certainly *not* be working on the Windows port tomorrow.