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

[PATCH] checkout: Do not show local changes when in quiet mode

From
Jonas Fonseca <fonseca@diku.dk>
Date
Sep 25, 2008, 08:35 UTC
Message-ID
<20080925083537.GA10273@diku.dk>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
 builtin-checkout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 I noticed this while using topgit which checkouts out a detached head
 with the -q flag and later does a final checkout, which caused local
 changes to be shown twice.
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 9aeb61d..b572b3b 100644
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
@@ -461,7 +461,7 @@ static int merge_working_tree(struct checkout_opts *opts,
 	    commit_locked_index(lock_file))
 		die("unable to write new index file");
 
-	if (!opts->force)
+	if (!opts->force && !opts->quiet)
 		show_local_changes(&new->commit->object);
 
 	return 0;
-- 
tg: (47a765d..) jf/checkout-quiet (depends on: next)

-- 
Jonas Fonseca
Message 1 of 1 in “checkout: Do not show local changes when in quiet mode”
  1. checkout: Do not show local changes when in quiet modeJonas Fonseca, Sep 25, 2008

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.