@matheusbsbs / matheus-bagliano / commits / dcbc7bbe39
Fork 0

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>

Nicolas Pitre committed Jan 13, 2007 at 21:23 UTC dcbc7bbe393d6bfee0ac36cc97fbc51ebf112ed6
1 file changed +1 -1
wt-status.c
+1 -1
@@ -335,7 +335,7 @@ void wt_status_print(struct wt_status *s)
335 if (s->amend)
336 printf("# No changes\n");
337 else if (s->workdir_dirty)
338 - printf("no changes added to commit (use \"git add\" and/or \"git commit [-a|-i|-o]\")\n");
338 + printf("no changes added to commit (use \"git add\" and/or \"git commit -a\")\n");
339 else if (s->workdir_untracked)
340 printf("nothing added to commit but untracked files present (use \"git add\" to track)\n");
341 else if (s->is_initial)