1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Change yadm.cygwin-copy to yadm.alt-copy

This removes the constraint of only allowing the copy option on Cygwin
systems. Now any system can configure this option.
This commit is contained in:
Tim Byrne
2019-10-09 08:25:02 -05:00
parent b2ef6d2e09
commit 574945f010
5 changed files with 81 additions and 92 deletions

9
yadm
View File

@@ -389,9 +389,10 @@ function alt() {
# decide if a copy should be done instead of a symbolic link
local do_copy=0
[[ $OPERATING_SYSTEM =~ ^(CYGWIN|MSYS) ]] &&
[ "$(config --bool yadm.cygwin-copy)" == "true" ] &&
do_copy=1
[ "$(config --bool yadm.alt-copy)" == "true" ] && do_copy=1
# deprecated yadm.cygwin-copy option (to be removed)
[ "$(config --bool yadm.cygwin-copy)" == "true" ] && do_copy=1
cd_work "Alternates" || return
@@ -966,10 +967,10 @@ local.class
local.hostname
local.os
local.user
yadm.alt-copy
yadm.auto-alt
yadm.auto-perms
yadm.auto-private-dirs
yadm.cygwin-copy
yadm.git-program
yadm.gpg-perms
yadm.gpg-program