Improve "nothing to commit" part of status output

Previously git-status in a clean working directory would advice the user to use
git add. This isn't very helpful when there is nothing to add in the working
directory, therefore note a clean working directory while displaying the other
sections and print the appropriate message for each case.

Signed-off-by: Jürgen Rühle <j-r@online.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Jürgen Rühle
2007-01-02 20:26:22 +01:00
committed by Junio C Hamano
parent e54eef9e1f
commit 6e458bf63f
2 changed files with 19 additions and 6 deletions

View File

@ -16,6 +16,7 @@ struct wt_status {
int verbose;
int amend;
int untracked;
int workdir_clean;
};
int git_status_config(const char *var, const char *value);