document empty expression

This commit is contained in:
Joey Hess 2024-12-13 13:31:21 -04:00
parent 7d8558548b
commit 431de0699e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 15 additions and 5 deletions

View file

@ -11,10 +11,6 @@ git annex required `repository [expression]`
When run with an expression, configures the content that is required
to be held in the repository.
For example:
git annex required . "include=*.mp3 or include=*.ogg"
Without an expression, displays the current required content setting
of the repository.
@ -26,6 +22,15 @@ need to be removed with `git annex drop --force`.
Also, `git-annex fsck` will warn about required contents that are not
present.
For example:
git annex required here "include=*.mp3 or include=*.ogg"
To return a repository to the original default behavior, use an empty
value for the expression, eg:
git-annex required here ""
# OPTIONS
* The [[git-annex-common-options]](1) can be used.

View file

@ -13,11 +13,16 @@ to be held in the repository. See [[git-annex-preferred-content]](1)
For example:
git annex wanted . "include=*.mp3 or include=*.ogg"
git annex wanted here "include=*.mp3 or include=*.ogg"
Without an expression, displays the current preferred content setting
of the repository.
To return a repository to the original default behavior, use an empty
value for the expression, eg:
git-annex wanted here ""
# OPTIONS
* The [[git-annex-common-options]](1) can be used.