git stat: the beginning of "status that is not a dry-run of commit"

Tentatively add "git stat" as a new command.

This is not "preview of commit with the same arguments"; the path parameters
are not paths to be added to the pristine index (aka "--only" option), but
are taken as pathspecs to limit the output.  Later in 1.7.0 release, it will
take over "git status".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2009-08-07 23:31:57 -07:00
parent 3fa509dfbd
commit 76e2f7ce32
6 changed files with 75 additions and 14 deletions

View File

@ -31,6 +31,7 @@ struct wt_status {
int is_initial;
char *branch;
const char *reference;
const char **pathspec;
int verbose;
int amend;
int nowarn;