status: Show added but not yet committed files.

Seems easy, but git ls-files can't list the right subset of files.
So, I wrote a whole new parser for git status output, and converted the
status command to use that.

There are a few other small behavior changes. The order changed. Unlocked
files show as T. In indirect mode, deleted files were not shown before, and
that's fixed. Regular files checked directly into git and modified
were not shown before, and are now.
This commit is contained in:
Joey Hess 2015-09-22 17:32:28 -04:00
parent 178826c4cb
commit f2b6ebd502
5 changed files with 121 additions and 56 deletions

View file

@ -9,8 +9,10 @@ git annex status `[path ...]`
# DESCRIPTION
Similar to `git status --short`, this command displays the status of the files
in the working tree. Shows files that are not checked into git, files that have
been deleted, and files that have been modified.
in the working tree.
Show files that are not checked into git (?), deleted (D),
modified (M), added but not committed (A), and type changed/unlocked (T).
Particularly useful in direct mode.

View file

@ -21,3 +21,5 @@ Using the `git status` command directly will show the added files
### What version of git-annex are you using? On what operating system?
git-annex version: 5.20141024-g613f396
> [[done]] --[[Joey]]