Commit graph

39818 commits

Author SHA1 Message Date
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
Atemu
6299fd688b 2021-05-04 02:43:14 +00:00
Joey Hess
e811a50e2c
fix test that broke due to fromkey improvements
4588668a12 made fromkey honor adjusted
unlocked branches. Also, it can be used on a crippled filesystem now.
2021-05-03 14:09:49 -04:00
Joey Hess
424bef6b6f
smudge: check for known annexed inodes before checking annex.largefiles
smudge: Fix a case where an unlocked annexed file that annex.largefiles
does not match could get its unchanged content checked into git, due to git
running the smudge filter unecessarily.

When the file has the same inodecache as an already annexed file,
we can assume that the user is not intending to change how it's stored in
git.

Note that checkunchangedgitfile already handled the inverse case, where the
file was added to git previously. That goes further and actually sha1
hashes the new file and checks if it's the same hash in the index.

It would be possible to generate a key for the file and see if it's the
same as the old key, however that could be considerably more expensive than
sha1 of a small file is, and it is not necessary for the case I have, at
least, where the file is not modified or touched, and so its inode will
match the cache.
2021-05-03 13:26:32 -04:00
Joey Hess
f2876804ca
close 2021-05-03 12:24:06 -04:00
Joey Hess
1be7be6976
Merge branch 'master' of ssh://git-annex.branchable.com 2021-05-03 12:12:07 -04:00
ijc@c69abafeb65fa2e784811fc549e9976a5cf4b903
d9da6d6505 Added a comment 2021-05-03 15:45:14 +00:00
Joey Hess
4588668a12
fromkey unlocked files support
fromkey: Create an unlocked file when used in an adjusted branch where the
file should be unlocked, or when configured by annex.addunlocked.

There is some overlap with code in Annex.Ingest, however it's not quite the
same because ingesting has a temp file with the content, where here the
content, if any, is in the annex object file. So it eg, makes sense for
Annex.Ingest to copy the execute mode of the content file, but it does not make
sense for fromkey to do that.

Also changed in passing to stage the file in git directly, rather than
using git add. One consequence of that is that if the file is gitignored,
it will still get added, rather than the old behavior:

The following paths are ignored by one of your .gitignore files:
ignored
hint: Use -f if you really want to add them.
hint: Turn this message off by running
hint: "git config advice.addIgnoredFile false"
git-annex: user error (xargs ["-0","git","--git-dir=.git","--work-tree=.","--literal-pathspecs","add","--"] exited 123)

That old behavior was a surprise to me, and so I consider it a bug, and doubt
anyone would have relied on it.

Note that, when on an --hide-missing branch, it is possible to fromkey a key
that is not present (needs --force). The annex link or pointer file still gets
written in this case. It doesn't seem to make any sense not to write it,
because then fromkey would not do anything useful in this case, and this way
the file can be committed and synced to master, and the branch re-adjusted to
hide the new missing file.

This commit was sponsored by Noam Kremen on Patreon.
2021-05-03 11:26:18 -04:00
Joey Hess
58fc6a1cdf
Merge branch 'master' of ssh://git-annex.branchable.com 2021-05-03 10:29:44 -04:00
Lukey
c9db4b2a47 2021-05-03 13:01:54 +00:00
Lukey
a9ac3feedd Added a comment 2021-05-03 12:33:32 +00:00
Lukey
217c6b8310 removed 2021-05-03 12:31:03 +00:00
Lukey
046f872ab1 Added a comment 2021-05-03 12:12:18 +00:00
Lukey
eaba5b55c5 Added a comment 2021-05-03 11:04:31 +00:00
Lukey
0e4f453b90 Added a comment 2021-05-03 10:26:35 +00:00
Joey Hess
4bd22a45e4
update 2021-05-02 15:22:22 -04:00
Lukey
dc6dd1e401 Added a comment 2021-05-02 18:46:34 +00:00
Lukey
2d61f01673 Added a comment 2021-05-02 18:36:56 +00:00
Atemu
a7249d0bda 2021-05-02 18:00:41 +00:00
ijc@c69abafeb65fa2e784811fc549e9976a5cf4b903
b2c706634e Added a comment 2021-05-02 17:54:56 +00:00
Lukey
5d6943b893 Added a comment 2021-05-02 08:03:56 +00:00
pat
dc5f1212f2 2021-05-01 06:06:33 +00:00
pat
592f33e9b7 2021-05-01 05:21:56 +00:00
yarikoptic
e5bbbb5d02 initial todo asking for possibility to assign costs per URL 2021-04-30 13:54:30 +00:00
yarikoptic
349c0668be initial todo for perspective copy-key(file) command(s) 2021-04-29 22:41:56 +00:00
Ilya_Shlyakhter
5efce5078a added suggestion: support tree-ish in command args 2021-04-29 16:53:31 +00:00
daniel
b73bfcabba Added a comment: openSUSE Leap 15.2 2021-04-29 14:47:00 +00:00
Kyle Meyer
a5a244b313 doc/git-annex-config: Fix typo in annex.synconlyannex description 2021-04-29 10:01:57 -04:00
Joey Hess
4ff230dd1d
add news item for git-annex 8.20210428 2021-04-28 12:17:08 -04:00
Joey Hess
27e5f3cd52
releasing package git-annex version 8.20210428 2021-04-28 12:16:45 -04:00
datamanager
1fb59a63a3 Added a comment: I think I am having the same issue 2021-04-28 01:19:46 +00:00
Joey Hess
63af1bae8d
Merge branch 'master' of ssh://git-annex.branchable.com 2021-04-27 18:12:19 -04:00