info: Support querying info of individual files in direct mode.

This commit is contained in:
Joey Hess 2015-09-09 14:15:56 -04:00
parent 3c25f978bb
commit 2b326594a9
3 changed files with 3 additions and 6 deletions

View file

@ -24,7 +24,6 @@ import Command
import Utility.DataUnits
import Utility.DiskFree
import Annex.Content
import Annex.Link
import Types.Key
import Logs.UUID
import Logs.Trust
@ -127,8 +126,7 @@ itemInfo o p = ifM (isdir p)
v' <- Remote.nameToUUID' p
case v' of
Right u -> uuidInfo o u
Left _ -> maybe noinfo (fileInfo o p)
=<< isAnnexLink p
Left _ -> ifAnnexed p (fileInfo o p) noinfo
)
where
isdir = liftIO . catchBoolIO . (isDirectory <$$> getFileStatus)

1
debian/changelog vendored
View file

@ -2,6 +2,7 @@ git-annex (5.20150825) UNRELEASED; urgency=medium
* Fix Windows build to work with ghc 7.10.
* init: Fix reversion in detection of repo made with git clone --shared
* info: Support querying info of individual files in direct mode.
-- Joey Hess <id@joeyh.name> Tue, 01 Sep 2015 14:46:18 -0700

View file

@ -35,6 +35,4 @@ git-annex: 1.dat is not a directory or an annexed file or a remote or a uuid
"""]]
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
> [[fixed|done]] --[[Joey]]