"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:
parent
478fdc8a5d
commit
1098bc37ab
4 changed files with 13 additions and 4 deletions
|
@ -48,6 +48,7 @@ start = do
|
||||||
let (name, action) = case from of
|
let (name, action) = case from of
|
||||||
Nothing -> (".", checkUnused)
|
Nothing -> (".", checkUnused)
|
||||||
Just "." -> (".", checkUnused)
|
Just "." -> (".", checkUnused)
|
||||||
|
Just "here" -> (".", checkUnused)
|
||||||
Just n -> (n, checkRemoteUnused n)
|
Just n -> (n, checkRemoteUnused n)
|
||||||
showStart "unused" name
|
showStart "unused" name
|
||||||
next action
|
next action
|
||||||
|
|
|
@ -90,6 +90,7 @@ byName' n = do
|
||||||
- .git/config. -}
|
- .git/config. -}
|
||||||
nameToUUID :: String -> Annex UUID
|
nameToUUID :: String -> Annex UUID
|
||||||
nameToUUID "." = getUUID -- special case for current repo
|
nameToUUID "." = getUUID -- special case for current repo
|
||||||
|
nameToUUID "here" = getUUID
|
||||||
nameToUUID "" = error "no remote specified"
|
nameToUUID "" = error "no remote specified"
|
||||||
nameToUUID n = byName' n >>= go
|
nameToUUID n = byName' n >>= go
|
||||||
where
|
where
|
||||||
|
|
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -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
|
git-annex (3.20120229) unstable; urgency=low
|
||||||
|
|
||||||
* Fix test suite to not require a unicode locale.
|
* Fix test suite to not require a unicode locale.
|
||||||
|
|
|
@ -177,7 +177,7 @@ subdirectories).
|
||||||
|
|
||||||
The repository to describe can be specified by git remote name or
|
The repository to describe can be specified by git remote name or
|
||||||
by uuid. To change the description of the current repository, use
|
by uuid. To change the description of the current repository, use
|
||||||
"."
|
"here".
|
||||||
|
|
||||||
* initremote name [param=value ...]
|
* initremote name [param=value ...]
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ subdirectories).
|
||||||
Records that a repository is trusted to not unexpectedly lose
|
Records that a repository is trusted to not unexpectedly lose
|
||||||
content. Use with care.
|
content. Use with care.
|
||||||
|
|
||||||
To trust the current repository, use "."
|
To trust the current repository, use "here".
|
||||||
|
|
||||||
* untrust [repository ...]
|
* untrust [repository ...]
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ subdirectories).
|
||||||
By default, only lists annexed files whose content is currently present.
|
By default, only lists annexed files whose content is currently present.
|
||||||
This can be changed by specifying file matching options. To list all
|
This can be changed by specifying file matching options. To list all
|
||||||
annexed files, present or not, specify --include "*". 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,
|
To output filenames terminated with nulls, for use with xargs -0,
|
||||||
specify --print0. Or, a custom output formatting can be specified using
|
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,
|
The repository should be specified using the name of a configured remote,
|
||||||
or the UUID or description of a repository. For the current repository,
|
or the UUID or description of a repository. For the current repository,
|
||||||
use "--in=."
|
use --in=here
|
||||||
|
|
||||||
* --copies=number
|
* --copies=number
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue