--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.
This commit is contained in:
parent
948bcf3125
commit
bf8bf14e8e
13 changed files with 96 additions and 18 deletions
|
@ -51,6 +51,10 @@ Copies the content of files from or to another remote.
|
|||
|
||||
This is the default behavior when running git-annex in a bare repository.
|
||||
|
||||
* `--branch=ref`
|
||||
|
||||
Operate on files in the specified branch or treeish.
|
||||
|
||||
* `--unused`
|
||||
|
||||
Operate on files found by last run of git-annex unused.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -72,6 +72,10 @@ With parameters, only the specified files are checked.
|
|||
|
||||
This is the default behavior when running git-annex in a bare repository.
|
||||
|
||||
* `--branch=ref`
|
||||
|
||||
Operate on files in the specified branch or treeish.
|
||||
|
||||
* `--unused`
|
||||
|
||||
Operate on files found by last run of git-annex unused.
|
||||
|
|
|
@ -57,6 +57,10 @@ or transferring them from some kind of key-value store.
|
|||
|
||||
This is the default behavior when running git-annex in a bare repository.
|
||||
|
||||
* `--branch=ref`
|
||||
|
||||
Operate on files in the specified branch or treeish.
|
||||
|
||||
* `--unused`
|
||||
|
||||
Operate on files found by last run of git-annex unused.
|
||||
|
|
|
@ -75,6 +75,11 @@ When run without any -s or -t parameters, displays the current metadata.
|
|||
|
||||
Specify instead of a file to get/set metadata on all known keys.
|
||||
|
||||
* `--branch=ref`
|
||||
|
||||
Specify instead of a file to get/set metadata on all files in the
|
||||
specified branch or treeish.
|
||||
|
||||
* `--unused`
|
||||
|
||||
Specify instead of a file to get/set metadata on
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -34,6 +34,10 @@ Moves the content of files from or to another remote.
|
|||
|
||||
This is the default behavior when running git-annex in a bare repository.
|
||||
|
||||
* `--branch=ref`
|
||||
|
||||
Operate on files in the specified branch or treeish.
|
||||
|
||||
* `--unused`
|
||||
|
||||
Operate on files found by last run of git-annex unused.
|
||||
|
|
|
@ -35,6 +35,10 @@ For example:
|
|||
|
||||
Show whereis information for all known keys.
|
||||
|
||||
* `--branch=ref`
|
||||
|
||||
Show whereis information for files in the specified branch or treeish.
|
||||
|
||||
* `--unused`
|
||||
|
||||
Show whereis information for files found by last run of git-annex unused.
|
||||
|
|
|
@ -22,3 +22,7 @@ or `refs/tags/*` can be operated on. --[[Joey]]
|
|||
> work tree file, but something to display while operating on an item.
|
||||
>
|
||||
> Not a hard change to make, but an extensive one. --[[Joey]]
|
||||
|
||||
>> I've implemented the first part of this, so --branch works
|
||||
>> but the name of the key is shown, rather than the file from the branch.
|
||||
>> --[[Joey]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue