aboutsummaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorJürgen Rühle <j-r@online.de>2007-01-02 20:26:22 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-02 23:43:21 -0800
commit6e458bf63f48fb7d15cb70ad7c7b7b71915d94a2 (patch)
treeccafd1c9a2159250884a910b12b748bd1da3a3ca /wt-status.h
parente54eef9e1f8adb055c7bbe0e4f50a3716f611dcf (diff)
downloadgit-6e458bf63f48fb7d15cb70ad7c7b7b71915d94a2.tar.gz
git-6e458bf63f48fb7d15cb70ad7c7b7b71915d94a2.tar.xz
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>
Diffstat (limited to 'wt-status.h')
-rw-r--r--wt-status.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wt-status.h b/wt-status.h
index 0a5a5b7ba..892a86c76 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -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);