annex.hardlink extended to also try to use hard links when copying from the repository to a remote.

Also, it used to only check that one of the repos was not in direct mode;
now when either repo is direct mode, annex.hardlink won't have an effect.
This commit is contained in:
Joey Hess 2015-09-14 12:13:38 -04:00
parent c5260f5cb0
commit ffa8221517
4 changed files with 31 additions and 18 deletions

View file

@ -875,8 +875,8 @@ Here are all the supported configuration settings.
* `annex.hardlink`
Set this to `true` to make file contents be hard linked into the
repository when possible, instead of a more expensive copy.
Set this to `true` to make file contents be hard linked between the
repository and its remotes when possible, instead of a more expensive copy.
Use with caution -- This can invalidate numcopies counting, since
with hard links, fewer copies of a file can exist. So, it is a good

View file

@ -3,3 +3,5 @@ repository when eg `git annex copy --from origin`. This should also
be done when copying files --to origin (or other remotes on the same
filesystem). This way, a quick shared clone can be used to add/modify
files, and cheaply send the changes back to the parent repo. --[[Joey]]
> [[done]] --[[Joey]]