Commit graph

39899 commits

Author SHA1 Message Date
Joey Hess
921753ac44
reinject: Error out when run on a file that is not annexed
rather than silently skipping it
2021-05-07 13:31:03 -04:00
Joey Hess
4bf7940d6b
fileRef: make paths relative and simplified
Fix behavior of several commands, including reinject, addurl, and rmurl
when given an absolute path to an unlocked file, or a relative path that
leaves and re-enters the repository.

To avoid slowing down all the cases where the paths are already ok
with an unncessary call to getCurrentDirectory, put in an optimisation
in relPathCwdToFile. That will probably also speed up other parts of
git-annex by some small amount, but I have not benchmarked.

Note that I did not convert branchFileRef, because it seems likely that
it will be used with a file that is not provided by the user, so is already
in a sane format. This is certainly true for the way git-annex uses it,
though maybe arguable to the extent Git.Ref is a reusable library.
2021-05-07 13:25:59 -04:00
Joey Hess
6b980c1514
comment 2021-05-07 13:13:48 -04:00
Joey Hess
73f330a62e
document an important property of relPathCwdToFile 2021-05-07 12:57:54 -04:00
Joey Hess
9e1a693f16
Merge branch 'master' of ssh://git-annex.branchable.com 2021-05-07 11:44:58 -04:00
Joey Hess
0caf171c63
patch review 2021-05-07 11:44:30 -04:00
Ilya_Shlyakhter
fd60824979 Added a comment: different keys for the same content 2021-05-07 15:37:46 +00:00
Joey Hess
51eb04a05c
remove now redundant -O0
That is now enabled by -f-Production, since commit
cab398c945
2021-05-07 11:25:34 -04:00
Joey Hess
1bd44c7742
Merge remote-tracking branch 'atemu/misc-fixes' 2021-05-07 11:23:54 -04:00
Joey Hess
eaea173bc2
applied patch 2021-05-07 11:11:10 -04:00
Kyle Meyer
4450fe3629
fromkey: create directory for pointer files too
fromkey creates leading directories for symbolic links.  Do the same
for pointer files.
2021-05-07 11:10:06 -04:00
Joey Hess
5332cf8a80
Merge branch 'master' of ssh://git-annex.branchable.com 2021-05-07 11:09:21 -04:00
kyle
cc36fd261e reinject: silent failure with absolute path to pointer file 2021-05-06 19:26:52 +00:00
kyle
06e996efad patch: fromkey: create directory for pointer files too 2021-05-06 15:23:07 +00:00
pat
dab2030702 Added a comment 2021-05-05 22:51:29 +00:00
Joey Hess
18f27dc60d
update 2021-05-05 17:30:35 -04:00
pat
f3ee163b8e Added a comment 2021-05-05 19:39:12 +00:00
pat
da5598da21 2021-05-05 19:06:19 +00:00
Lukey
49f9f696f1 Added a comment 2021-05-05 18:08:49 +00:00
https://esgf-node.llnl.gov/esgf-idp/openid/tom_clune
5d8ee97297 2021-05-05 16:31:32 +00:00
Atemu
e686a878ed 2021-05-05 08:52:28 +00:00
Atemu
4da2206148 Added a comment 2021-05-05 07:33:07 +00:00
Atemu
78948270e2 2021-05-05 06:11:51 +00:00
Atemu
931a55b9a4 Added a comment 2021-05-05 06:04:49 +00:00
Atemu
cab398c945 Cabal: Use -O0 for development builds
Can be configured with `--flags=-production`

Time for full build on my machine: 2m -> 45s
2021-05-05 07:53:52 +02:00
Atemu
857bffe388 Added a comment 2021-05-05 05:43:56 +00:00
pat
5bb85d76d8 2021-05-05 02:51:47 +00:00
kyle
8f0ddf0925 git-commit pathspec change due to 424bef6b6 2021-05-04 21:43:41 +00:00
cecile.madjar@d95f9e618c3dff4829e7fedba1a71e1499542f3f
e66b5344e8 Added a comment 2021-05-04 21:12:52 +00:00
Lukey
72835347d5 Added a comment 2021-05-04 20:38:01 +00:00
Lukey
3eeb26474a Added a comment 2021-05-04 20:31:45 +00:00
cecile.madjar@d95f9e618c3dff4829e7fedba1a71e1499542f3f
9be367ca96 Added a comment 2021-05-04 20:24:51 +00:00
yarikoptic
4d6e5bc6ad removed 2021-05-04 19:57:53 +00:00
fortran
1a345c9001 Added a comment 2021-05-04 19:25:47 +00:00
fortran
30127348f0 Added a comment 2021-05-04 19:10:35 +00:00
yarikoptic
eac6b763d3 Added a comment 2021-05-04 17:51:09 +00:00
yarikoptic
66e175fec9 Added a comment 2021-05-04 17:50:45 +00:00
Atemu
6b23eb031f Added a comment 2021-05-04 17:37:04 +00:00
Atemu
6c6c5184a4 Added a comment 2021-05-04 17:19:57 +00:00
yarikoptic
1f7577839c Added a comment 2021-05-04 16:53:18 +00:00
Joey Hess
32e6d6880f
comment 2021-05-04 11:13:50 -04:00
Joey Hess
2d36fa7e17
comment 2021-05-04 10:56:27 -04:00
Joey Hess
20fee2ef04
response 2021-05-04 10:31:53 -04:00
Joey Hess
084f0e3e89
comment and todo 2021-05-04 10:14:53 -04:00
Joey Hess
447bffbb6b
remove my comment as someone else already answered it well 2021-05-04 09:52:50 -04:00
Joey Hess
8a61a801d5
response 2021-05-04 09:52:23 -04:00
Lukey
67a6bd51b5 Added a comment 2021-05-04 13:42:34 +00:00
fortran
76a1128c70 2021-05-04 12:56:53 +00:00
Atemu
0df9dc617f Added a comment 2021-05-04 12:46:59 +00:00
Atemu
a7f0014a53 Command/Multicast: use proper hyphen
GHC was complaining about it possibly being a homoglyph:

Command/Multicast.hs:111:36: error:
     warning: treating Unicode character <U+2212> as identifier character rather than as '-' symbol [-Wunicode-homoglyph]
            -- using a nice prime, namely 2521−1  but the sheer size of this
                                              ^
    |
111 |         -- using a nice prime, namely 2521−1  but the sheer size of this
    |                                    ^
1 warning generated.
2021-05-04 05:44:31 +02:00