summaryrefslogtreecommitdiff
path: root/doc/git-annex-drop.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-07-20 12:05:22 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-07-20 12:05:26 -0400
commit1fa1b334d73f67627af8c18831c97dc1de036f96 (patch)
tree1f34933db1ebd7ef48ec9e9f2b1a4d002ec648ee /doc/git-annex-drop.mdwn
parent93c48c4fdb3c7ae80486a7699b25f2e29c2b7cd0 (diff)
--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.
Diffstat (limited to 'doc/git-annex-drop.mdwn')
-rw-r--r--doc/git-annex-drop.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/git-annex-drop.mdwn b/doc/git-annex-drop.mdwn
index 0bbbd78df..7b052bee0 100644
--- a/doc/git-annex-drop.mdwn
+++ b/doc/git-annex-drop.mdwn
@@ -42,14 +42,30 @@ safe to do so.
This is the default behavior when running git-annex drop in a bare repository.
+ Note that this bypasses checking the .gitattributes annex.numcopies
+ setting.
+
+* `--branch=ref`
+
+ Drop files in the specified branch or treeish.
+
+ Note that this bypasses checking the .gitattributes annex.numcopies
+ setting.
+
* `--unused`
Drop files found by last run of git-annex unused.
+ Note that this bypasses checking the .gitattributes annex.numcopies
+ setting.
+
* `--key=keyname`
Use this option to drop a specified key.
+ Note that this bypasses checking the .gitattributes annex.numcopies
+ setting.
+
* file matching options
The [[git-annex-matching-options]](1)