Git development
 help / color / mirror / Atom feed
From: Michael Loeffler <zvpunry@zvpunry.de>
To: git@vger.kernel.org
Subject: [PATCH] wt-status: remove use_add_msg in wt_status_print
Date: Fri, 05 Jan 2007 22:30:21 +0100	[thread overview]
Message-ID: <1168032621.11130.36.camel@ibook.zvpunry.de> (raw)

If there is nothing to commit there is no need to say something about
adding files.

If there is something to commit or untracked or modified files, git
status will give this hint. In this case it is also redundant to say it
again.

Signed-off-by: Michael Loeffler <zvpunry@zvpunry.de>
---
 wt-status.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/wt-status.c b/wt-status.c
index db42738..019ec46 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -292,9 +292,7 @@ void wt_status_print(struct wt_status *s)
 	if (s->verbose && !s->is_initial)
 		wt_status_print_verbose(s);
 	if (!s->commitable)
-		printf("%s (%s)\n",
-			s->amend ? "# No changes" : "nothing to commit",
-			use_add_msg);
+		printf("%s\n", s->amend ? "# No changes" : "nothing to commit");
 }
 
 int git_status_config(const char *k, const char *v)
-- 
1.5.0.rc0.g1fa2

                 reply	other threads:[~2007-01-05 21:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1168032621.11130.36.camel@ibook.zvpunry.de \
    --to=zvpunry@zvpunry.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox