info: remove "repository mode"
info: Removed the "repository mode" from its output (including the --json output) since with the removal of direct mode, there is no repository mode.
This commit is contained in:
parent
c83c82a9c4
commit
4f59ac05b6
2 changed files with 4 additions and 9 deletions
|
@ -11,6 +11,9 @@ git-annex (7.20190826) UNRELEASED; urgency=medium
|
|||
* indirect: This command has become a deprecated noop.
|
||||
* proxy: This command is deprecated because it was only needed in direct
|
||||
mode. (But it continues to work.)
|
||||
* info: Removed the "repository mode" from its output (including the
|
||||
--json output) since with the removal of direct mode, there is no
|
||||
repository mode.
|
||||
* info: When file matching options are specified when getting
|
||||
info of something other than a directory, they won't have any effect,
|
||||
so error out to avoid confusion.
|
||||
|
|
|
@ -226,8 +226,7 @@ selStats fast_stats slow_stats = do
|
|||
-}
|
||||
global_fast_stats :: [Stat]
|
||||
global_fast_stats =
|
||||
[ repository_mode
|
||||
, repo_list Trusted
|
||||
[ repo_list Trusted
|
||||
, repo_list SemiTrusted
|
||||
, repo_list UnTrusted
|
||||
, transfer_list
|
||||
|
@ -315,13 +314,6 @@ showStat s = maybe noop calc =<< s
|
|||
(lift . showHeader) desc
|
||||
lift . showRaw =<< a
|
||||
|
||||
repository_mode :: Stat
|
||||
repository_mode = simpleStat "repository mode" $ lift $
|
||||
ifM (fromRepo Git.repoIsLocalBare)
|
||||
( return "bare"
|
||||
, return "indirect"
|
||||
)
|
||||
|
||||
repo_list :: TrustLevel -> Stat
|
||||
repo_list level = stat n $ nojson $ lift $ do
|
||||
us <- filter (/= NoUUID) . M.keys
|
||||
|
|
Loading…
Reference in a new issue