summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-01-14 02:23:55 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-14 02:48:10 (GMT)
commitdcbc7bbe393d6bfee0ac36cc97fbc51ebf112ed6 (patch)
tree306559b3c1f262dd0d63a735546fd97f78e9b3d8 /wt-status.c
parent696b1b507f8ff9e80a2edc4eced59ca8cdda920e (diff)
downloadgit-dcbc7bbe393d6bfee0ac36cc97fbc51ebf112ed6.zip
git-dcbc7bbe393d6bfee0ac36cc97fbc51ebf112ed6.tar.gz
git-dcbc7bbe393d6bfee0ac36cc97fbc51ebf112ed6.tar.bz2
simplify the "no changes added to commit" message
Suggesting the use of [-a|-i|-o] with git-commit is unnecessarily complex and confusing. In this context -o is totally useless and -i requires extra arguments which are not mentioned. The only sensible hint (besides reading the man page but let's not go there) is "commit -a". Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index daba9a6..b7250e4 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -335,7 +335,7 @@ void wt_status_print(struct wt_status *s)
if (s->amend)
printf("# No changes\n");
else if (s->workdir_dirty)
- printf("no changes added to commit (use \"git add\" and/or \"git commit [-a|-i|-o]\")\n");
+ printf("no changes added to commit (use \"git add\" and/or \"git commit -a\")\n");
else if (s->workdir_untracked)
printf("nothing added to commit but untracked files present (use \"git add\" to track)\n");
else if (s->is_initial)