git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] wt-status: remove use_add_msg in wt_status_print

From
MLMichael Loeffler <zvpunry@zvpunry.de>
Date
Jan 5, 2007, 21:30 UTC
Message-ID
<1168032621.11130.36.camel@ibook.zvpunry.de>

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
Message 1 of 1 in “wt-status: remove use_add_msg in wt_status_print”
  1. wt-status: remove use_add_msg in wt_status_printMichael Loeffler, Jan 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.