CI to automate build of cargo lockfiles on different Alpine releases for git-annex aports https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/community/git-annex
Find a file
Joey Hess cedc28a783
prevent dropping required content of other file using same content
When two files have the same content, and a required content expression
matches one but not the other, dropping the latter file will fail as it
would also remove the content of the required file.

This will slow down drop (w/o --auto), dropunused, mirror, and move, by one
keys db lookup per file. But I did include an optimisation to avoid a
double db lookup in the drop --auto / sync --content case. I suspect that
dropunused could also use PreferredContentChecked True, but haven't
entirely thought it through and it's rarely used with enough files for the
optimisation to matter.

Sponsored-by: Dartmouth College's Datalad project
2021-05-25 11:34:06 -04:00
Annex prevent dropping required content of other file using same content 2021-05-25 11:34:06 -04:00
Assistant comment typo 2021-04-08 13:08:01 -04:00
Backend use fastDebug everywhere it can be used 2021-04-06 15:41:24 -04:00
Build Windows: Correct the path to the html help file for 64 bit build. 2021-02-24 13:19:42 -04:00
CmdLine skeleton of filter-branch command, with option parser 2021-05-14 10:59:48 -04:00
Command prevent dropping required content of other file using same content 2021-05-25 11:34:06 -04:00
Config add: Significantly speed up adding lots of non-large files to git 2021-01-04 13:12:28 -04:00
Database fix deadlock 2021-05-24 16:19:26 -04:00
debian Enable building with git-annex benchmark by default 2020-10-02 13:57:10 -04:00
doc Merge branch 'master' into trackassociated 2021-05-24 16:27:24 -04:00
Git fixed reconcileStaged crash when index is locked or in conflict 2021-05-24 11:33:23 -04:00
Limit fix longstanding indeterminite preferred content for duplicated file problem 2021-05-24 14:07:05 -04:00
Logs prevent dropping required content of other file using same content 2021-05-25 11:34:06 -04:00
Messages simplify transferr protocol 2020-12-11 12:52:22 -04:00
P2P switch from hslogger to purpose-built Utility.Debug 2021-04-05 13:40:31 -04:00
Remote Avoid more than 1 gpg password prompt at the same time 2021-04-27 16:36:44 -04:00
RemoteDaemon switch from hslogger to purpose-built Utility.Debug 2021-04-05 13:40:31 -04:00
standalone bump filepath-bytestring dep 2020-11-11 11:49:19 -04:00
static Revert "remove newlines from static js and css" 2014-06-13 02:20:39 -04:00
templates cache the serialization of a Key 2019-11-22 17:49:16 -04:00
Test add test cases for git/annexed conversions 2021-05-10 14:29:57 -04:00
Types fromkey unlocked files support 2021-05-03 11:26:18 -04:00
Upgrade include locked files in the keys database associated files 2021-05-21 16:24:37 -04:00
Utility set cwd rarher than changing current process directory 2021-05-12 17:44:22 -04:00
.ghci avoid ghci warning on tabs 2019-01-21 12:35:44 -04:00
.gitattributes update changelog location 2016-08-22 23:54:11 -04:00
.gitignore stack.yaml: Updated to lts-16.10 2020-08-24 14:11:37 -04:00
.mailmap alias for Yaroslav @ yahoo to mailmap 2015-09-09 12:38:59 -04:00
Annex.hs Avoid more than 1 gpg password prompt at the same time 2021-04-27 16:36:44 -04:00
Assistant.hs assistant: Fix a crash on startup by avoiding using forkProcess 2021-05-12 15:08:03 -04:00
Backend.hs incremental checksum on download from ssh or p2p 2021-02-09 17:03:27 -04:00
bash-completion.bash bash completion fix 2018-11-12 13:23:05 -04:00
Benchmark.hs move global options handling closer to Command definitions 2021-02-02 15:55:45 -04:00
BuildFlags.hs Removed the S3 and WebDAV build flags 2020-09-08 12:42:59 -04:00
BuildInfo.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
CHANGELOG prevent dropping required content of other file using same content 2021-05-25 11:34:06 -04:00
CmdLine.hs fix fastDebug to check if debugging is actually enabled 2021-04-06 16:28:37 -04:00
Command.hs addon commands 2021-02-02 16:32:49 -04:00
Common.hs finish fixing removeLink on windows 2020-11-24 13:20:44 -04:00
Config.hs more RawFilePath conversion 2020-10-29 10:50:29 -04:00
COPYRIGHT update year 2021-01-04 12:45:19 -04:00
Creds.hs avoid getting creds from environment during autoenable 2021-03-17 09:41:12 -04:00
Crypto.hs fix strictness issue 2020-06-16 17:09:34 -04:00
git-annex.cabal skeleton of filter-branch command, with option parser 2021-05-14 10:59:48 -04:00
git-annex.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
git-union-merge.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Git.hs avoid crashing when there are remotes using unparseable urls 2021-01-18 14:59:08 -04:00
Key.hs use GIT keys for export of non-annexed files 2021-03-05 14:12:11 -04:00
Limit.hs prep for fixing find --branch --unlocked 2021-03-02 13:39:31 -04:00
Logs.hs filter-branch working aside from some edge cases 2021-05-17 13:24:58 -04:00
Makefile remove now redundant -O0 2021-05-07 11:25:34 -04:00
Messages.hs remove webapp debug check box 2021-04-06 17:23:12 -04:00
NEWS fix dist in latest NEWS entry 2020-09-14 12:05:12 -04:00
README use https 2014-11-06 14:20:10 -04:00
Remote.hs Behavior change: --trust option no longer overrides trust 2021-01-07 10:34:57 -04:00
Setup.hs Added git-remote-tor-annex, which allows git pull and push to the tor hidden service. 2016-11-21 17:27:38 -04:00
stack.yaml update to lts-16.27 2020-12-29 13:51:08 -04:00
Test.hs prevent dropping required content of other file using same content 2021-05-25 11:34:06 -04:00
Types.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Upgrade.hs propagate git-annex -c on to transferrer child process 2020-12-15 11:36:25 -04:00

git-annex allows managing files with git, without checking the file
contents into git. While that may seem paradoxical, it is useful when
dealing with files larger than git can currently easily handle, whether due
to limitations in memory, checksumming time, or disk space.

For documentation, see doc/ or <https://git-annex.branchable.com/>