From 1fa1b334d73f67627af8c18831c97dc1de036f96 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 20 Jul 2016 12:05:22 -0400 Subject: --branch, stage 1 Added --branch option to copy, drop, fsck, get, metadata, mirror, move, and whereis commands. This option makes git-annex operate on files that are included in a specified branch (or other treeish). The names of the files from the branch that are being operated on are not displayed yet; only the keys. Displaying the filenames will need changes to every affected command. Also, note that --branch can be specified repeatedly. This is not really documented, but seemed worth supporting, especially since we may later want the ability to operate on all branches matching a refspec. However, when operating on two branches that contain the same key, that key will be operated on twice. --- doc/git-annex-mirror.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/git-annex-mirror.mdwn') diff --git a/doc/git-annex-mirror.mdwn b/doc/git-annex-mirror.mdwn index 9c07d2b4c..9cc503f26 100644 --- a/doc/git-annex-mirror.mdwn +++ b/doc/git-annex-mirror.mdwn @@ -46,6 +46,13 @@ contents. Use [[git-annex-sync]](1) for that. This is the default behavior when running git-annex in a bare repository. +* `--branch=ref` + + Operate on files in the specified branch or treeish. + + Like --all, this bypasses checking the .gitattributes annex.numcopies + setting when dropping files. + * file matching options The [[git-annex-matching-options]](1) -- cgit v1.2.3