Only use cp -a if it is supported, falling back to cp -p or plain cp.

* cp --reflink=auto is used if supported, and will make git annex unlock
  much faster on filesystems like btrfs that support copy of write.
This commit is contained in:
Joey Hess 2010-11-18 13:48:28 -04:00
parent 54513c69ba
commit 161823d6ea
7 changed files with 48 additions and 18 deletions

View file

@ -3,3 +3,5 @@ The unlock command needs to copy a file, and it would be great to use this:
O(1) overhead on BTRFS. Needs coreutils 7.6; and remember that git-annex
may be used on systems without coreutils..
[[done]]