add new status command

This works for both direct and indirect mode.

It may need some performance tuning.

Note that unlike git status, it only shows the status of the work tree, not
the status of the index. So only one status letter, not two .. and since
files that have been added and not yet committed do not differ between the
work tree and the index, they are not shown. Might want to add display of
the index vs the last commit eventually.

This commit was sponsored by an unknown bitcoin contributor, whose
contribution as been going up lately! ;)
This commit is contained in:
Joey Hess 2013-11-07 13:55:36 -04:00
parent eed2ed4fdb
commit 59ecc804cd
6 changed files with 125 additions and 9 deletions

View file

@ -47,6 +47,7 @@ import qualified Command.List
import qualified Command.Log
import qualified Command.Merge
import qualified Command.Info
import qualified Command.Status
import qualified Command.Migrate
import qualified Command.Uninit
import qualified Command.Trust
@ -141,6 +142,7 @@ cmds = concat
, Command.Log.def
, Command.Merge.def
, Command.Info.def
, Command.Status.def
, Command.Migrate.def
, Command.Map.def
, Command.Direct.def