"here" can be used to refer to the current repository, which can read better than the old "." (which still works too).

This commit is contained in:
Joey Hess 2012-03-01 22:35:10 -04:00
parent 478fdc8a5d
commit 1098bc37ab
4 changed files with 13 additions and 4 deletions

View file

@ -48,6 +48,7 @@ start = do
let (name, action) = case from of
Nothing -> (".", checkUnused)
Just "." -> (".", checkUnused)
Just "here" -> (".", checkUnused)
Just n -> (n, checkRemoteUnused n)
showStart "unused" name
next action

View file

@ -90,6 +90,7 @@ byName' n = do
- .git/config. -}
nameToUUID :: String -> Annex UUID
nameToUUID "." = getUUID -- special case for current repo
nameToUUID "here" = getUUID
nameToUUID "" = error "no remote specified"
nameToUUID n = byName' n >>= go
where

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
git-annex (3.20120230) UNRELEASED; urgency=low
* "here" can be used to refer to the current repository,
which can read better than the old "." (which still works too).
-- Joey Hess <joeyh@debian.org> Thu, 01 Mar 2012 22:34:27 -0400
git-annex (3.20120229) unstable; urgency=low
* Fix test suite to not require a unicode locale.

View file

@ -177,7 +177,7 @@ subdirectories).
The repository to describe can be specified by git remote name or
by uuid. To change the description of the current repository, use
"."
"here".
* initremote name [param=value ...]
@ -196,7 +196,7 @@ subdirectories).
Records that a repository is trusted to not unexpectedly lose
content. Use with care.
To trust the current repository, use "."
To trust the current repository, use "here".
* untrust [repository ...]
@ -273,7 +273,7 @@ subdirectories).
By default, only lists annexed files whose content is currently present.
This can be changed by specifying file matching options. To list all
annexed files, present or not, specify --include "*". To list all
annexed files whose content is not present, specify --not --in="."
annexed files whose content is not present, specify --not --in=here
To output filenames terminated with nulls, for use with xargs -0,
specify --print0. Or, a custom output formatting can be specified using
@ -527,7 +527,7 @@ file contents are present at either of two repositories.
The repository should be specified using the name of a configured remote,
or the UUID or description of a repository. For the current repository,
use "--in=."
use --in=here
* --copies=number