summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-08-18 12:20:47 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-08-18 12:20:47 -0400
commit8a2197adfab9d8425f92000621a802dce37e124c (patch)
treee305ea8d7ac9f88ef827902eecea805a867d603d /doc/git-annex.mdwn
parent0c53ccc675b52d4995b3406d5814116605fe6ec7 (diff)
Added annex-cost-command configuration, which can be used to vary the cost of a remote based on the output of a shell command.
Also avoided crashing if the user specified cost value cannot be parsed.
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 9d63ca156..a262d465f 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -424,6 +424,12 @@ Here are all the supported configuration settings.
The default cost is 100 for local repositories, and 200 for remote
repositories.
+* `remote.<name>.annex-cost-command`
+
+ If set, the command is run, and the number it outputs is used as the cost.
+ This allows varying the cost based on eg, the current network. The
+ cost-command can be any shell command line.
+
* `remote.<name>.annex-ignore`
If set to `true`, prevents git-annex