From 9dcd60b2441a05e18d05d982d7786494bdee3afb Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Thu, 3 Sep 2015 09:04:26 +0400 Subject: [PATCH] =?UTF-8?q?pxs=20transfert=20les=20donn=C3=A9es=20aussi=20?= =?UTF-8?q?en=20mode=20direct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uproject | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/uproject b/uproject index 36dc4ae..9df4a0a 100755 --- a/uproject +++ b/uproject @@ -236,10 +236,16 @@ elif array_contains VCS_CMDS "$CMD"; then "vcs_$CMD" "$@" elif array_contains GITANNEX_CMDS "$CMD"; then + function xsync() { + local direct + is_yes "$(git config --get annex.direct)" && direct=1 + git annex sync ${direct:+--content} + } use_ssh_wrapper case "$CMD" in annex) git annex "$@";; - xcopy|xmove|xget) git annex "${CMD#x}" "$@" && git annex sync;; + xsync) xsync;; + xcopy|xmove|xget) git annex "${CMD#x}" "$@" && xsync;; xinitial) git_annex_initial "$@";; *) git annex "${CMD#x}" "$@";; esac