From c11633a52dbdcc187f5afcef50776fa41c7327ce Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 16 Feb 2016 14:43:43 -0400 Subject: annex.addunlocked * add, addurl, import, importfeed: When in a v6 repository on a crippled filesystem, add files unlocked. * annex.addunlocked: New configuration setting, makes files always be added unlocked. (v6 only) --- doc/tips/unlocked_files.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/tips') diff --git a/doc/tips/unlocked_files.mdwn b/doc/tips/unlocked_files.mdwn index 31f9e9756..fd103940e 100644 --- a/doc/tips/unlocked_files.mdwn +++ b/doc/tips/unlocked_files.mdwn @@ -88,6 +88,13 @@ git-annex converts between the content of the big file and a pointer file, which is what gets committed to git. All the regular git-annex commands (get, drop, etc) can be used on unlocked files too. +[[!template id=note text=""" +By default, git-annex commands will add files in locked mode, +unless used on a filesystem that does not support symlinks, when unlocked +mode is used. To make them always use unlocked mode, run: +`git config annex.addunlocked true` +"""]] + A v6 repository can contain both locked and unlocked files. You can switch a file back and forth using the `git annex lock` and `git annex unlock` commands. This changes what's stored in git between a git-annex symlink -- cgit v1.2.3