diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-07 12:45:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-07 12:45:59 -0400 |
commit | 8aec790a7aefba4dc2e8e0d219d333c12ad585e3 (patch) | |
tree | 3109d87ab24e0a5d39299e6aeba046678b9ccc2b | |
parent | 2119fb1775999da045d24f0a7d43babcf6bd61dc (diff) |
rename status to info, and update docs
-rw-r--r-- | Command/Info.hs (renamed from Command/Status.hs) | 22 | ||||
-rw-r--r-- | GitAnnex.hs | 4 | ||||
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | doc/bare_repositories.mdwn | 2 | ||||
-rw-r--r-- | doc/git-annex.mdwn | 14 | ||||
-rw-r--r-- | doc/tips/Decentralized_repository_behind_a_Firewall.mdwn | 2 | ||||
-rw-r--r-- | doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn | 2 | ||||
-rw-r--r-- | doc/tips/yet_another_simple_disk_usage_like_utility/comment_1_41b212bde8bc88d2a5dea93bd0dc75f1._comment | 2 |
8 files changed, 27 insertions, 24 deletions
diff --git a/Command/Status.hs b/Command/Info.hs index 44d868f6b..d465f2d84 100644 --- a/Command/Status.hs +++ b/Command/Info.hs @@ -7,7 +7,7 @@ {-# LANGUAGE BangPatterns #-} -module Command.Status where +module Command.Info where import "mtl" Control.Monad.State.Strict import qualified Data.Map as M @@ -70,31 +70,31 @@ data StatInfo = StatInfo type StatState = StateT StatInfo Annex def :: [Command] -def = [noCommit $ command "status" paramPaths seek - SectionQuery "shows status information about the annex"] +def = [noCommit $ command "info" paramPaths seek + SectionQuery "shows general information about the annex"] seek :: [CommandSeek] seek = [withWords start] start :: [FilePath] -> CommandStart start [] = do - globalStatus + globalInfo stop start ps = do - mapM_ localStatus =<< filterM isdir ps + mapM_ localInfo =<< filterM isdir ps stop where isdir = liftIO . catchBoolIO . (isDirectory <$$> getFileStatus) -globalStatus :: Annex () -globalStatus = do +globalInfo :: Annex () +globalInfo = do stats <- selStats global_fast_stats global_slow_stats - showCustom "status" $ do + showCustom "info" $ do evalStateT (mapM_ showStat stats) (StatInfo Nothing Nothing Nothing) return True -localStatus :: FilePath -> Annex () -localStatus dir = showCustom (unwords ["status", dir]) $ do +localInfo :: FilePath -> Annex () +localInfo dir = showCustom (unwords ["info", dir]) $ do stats <- selStats (tostats local_fast_stats) (tostats local_slow_stats) evalStateT (mapM_ showStat stats) =<< getLocalStatInfo dir return True @@ -295,7 +295,7 @@ cachedReferencedData = do put s { referencedData = Just v } return v --- currently only available for local status +-- currently only available for local info cachedNumCopiesStats :: StatState (Maybe NumCopiesStats) cachedNumCopiesStats = numCopiesStats <$> get diff --git a/GitAnnex.hs b/GitAnnex.hs index b73cd9416..0bd48e0df 100644 --- a/GitAnnex.hs +++ b/GitAnnex.hs @@ -46,7 +46,7 @@ import qualified Command.Whereis import qualified Command.List import qualified Command.Log import qualified Command.Merge -import qualified Command.Status +import qualified Command.Info import qualified Command.Migrate import qualified Command.Uninit import qualified Command.Trust @@ -140,7 +140,7 @@ cmds = concat , Command.List.def , Command.Log.def , Command.Merge.def - , Command.Status.def + , Command.Info.def , Command.Migrate.def , Command.Map.def , Command.Direct.def diff --git a/debian/changelog b/debian/changelog index 740773fd8..1429f327c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,9 @@ git-annex (5.20131102) UNRELEASED; urgency=low * annex.version is now set to 5 for direct mode repositories. This upgrade is handled fully automatically, no need to run git annex upgrade + * The "status" command has been renamed to "info", to allow + "git annex status" to be used in direct mode repositories, now that + "git status" won't work in them. * The -c option now not only modifies the git configuration seen by git-annex, but it is passed along to every git command git-annex runs. diff --git a/doc/bare_repositories.mdwn b/doc/bare_repositories.mdwn index 7fa035985..975a638b8 100644 --- a/doc/bare_repositories.mdwn +++ b/doc/bare_repositories.mdwn @@ -39,7 +39,7 @@ Now configure the remote and do the initial push: git remote add origin example.com:bare-annex.git git push origin master git-annex -Now `git annex status` should show the configured bare remote. If it does not, you may have to pull from the remote first (older versions of `git-annex`) +Now `git annex info` should show the configured bare remote. If it does not, you may have to pull from the remote first (older versions of `git-annex`) If you wish to configure git such that you can push/pull without arguments, set the upstream branch: diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index fd22fc672..4aeeb8ad5 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -607,23 +607,23 @@ subdirectories). To generate output suitable for the gource visualisation program, specify `--gource`. -* `status [directory ...]` +* `info [directory ...]` Displays some statistics and other information, including how much data is in the annex and a list of all known repositories. To only show the data that can be gathered quickly, use `--fast`. - When a directory is specified, shows a differently formatted status + When a directory is specified, shows a differently formatted info display for that directory. In this mode, all of the file matching options can be used to filter the files that will be included in - the status. + the information. For example, suppose you want to run "git annex get .", but would first like to see how much disk space that will use. Then run: - git annex status --fast . --not --in here + git annex info --fast . --not --in here * `map` @@ -797,7 +797,7 @@ subdirectories). Rather than the normal output, generate JSON. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. Note that json output is only usable with some git-annex commands, - like status and find. + like info and find. * `--debug` @@ -1097,7 +1097,7 @@ Here are all the supported configuration settings. up to 500000 keys. If your repository is larger than that, you can adjust this to avoid `git annex unused` not noticing some unused data files. Increasing this will make `git-annex unused` consume more memory; - run `git annex status` for memory usage numbers. + run `git annex info` for memory usage numbers. * `annex.bloomaccuracy` @@ -1105,7 +1105,7 @@ Here are all the supported configuration settings. `git annex unused`. The default accuracy is 1000 -- 1 unused file out of 1000 will be missed by `git annex unused`. Increasing the accuracy will make `git annex unused` consume more memory; - run `git annex status` for memory usage numbers. + run `git annex info` for memory usage numbers. * `annex.sshcaching` diff --git a/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn b/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn index 6a9eb241b..9e347c73f 100644 --- a/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn +++ b/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn @@ -25,7 +25,7 @@ Now you can run normal annex operations, as long as the port forwarding shell is git annex sync git annex get on-the-go some/big/file - git annex status + git annex info You can add more computers by repeating with a different port, e.g. 2202 or 2203 (or any other). diff --git a/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn b/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn index 7bddd64b9..1209d1217 100644 --- a/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn +++ b/doc/tips/migrating_two_seperate_disconnected_directories_to_git_annex.mdwn @@ -31,7 +31,7 @@ On `angela`, we want to synchronise the git annex metadata with `marcos`. We nee git init git remote add marcos marcos.example.com:/srv/mp3 git fetch marcos - git annex status # this should display the two repos + git annex info # this should display the two repos git annex add . This will, again, checksum all files and add them to git annex. Once that is done, you can verify that the files are really the same as marcos with `whereis`: diff --git a/doc/tips/yet_another_simple_disk_usage_like_utility/comment_1_41b212bde8bc88d2a5dea93bd0dc75f1._comment b/doc/tips/yet_another_simple_disk_usage_like_utility/comment_1_41b212bde8bc88d2a5dea93bd0dc75f1._comment index 3a88e855e..4c3e3c22b 100644 --- a/doc/tips/yet_another_simple_disk_usage_like_utility/comment_1_41b212bde8bc88d2a5dea93bd0dc75f1._comment +++ b/doc/tips/yet_another_simple_disk_usage_like_utility/comment_1_41b212bde8bc88d2a5dea93bd0dc75f1._comment @@ -4,6 +4,6 @@ subject="comment 1" date="2013-07-12T19:36:28Z" content=""" -Ah, I just found that git annex status can do the same :) +Ah, I just found that git annex info can do the same :) Disregard this. """]] |