{"thread":{"id":"12226","subject":"[PATCH] checkout: obey -q option","startedAt":"2008-02-20T23:08:59Z","lastAt":"2008-02-20T23:08:59Z","messageCount":1,"participants":["Gustaf Hendeby"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"69422","messageId":"1203548939-17350-1-git-send-email-hendeby@isy.liu.se","threadId":"12226","inReplyTo":null,"subject":"[PATCH] checkout: obey -q option","fromName":"Gustaf Hendeby","fromEmail":"hendeby@isy.liu.se","sentAt":"2008-02-20T23:08:59Z","receivedAt":"2008-02-20T23:08:59Z","isPatch":true,"sender":{"key":"hendeby@isy.liu.se","avatar":"https://avatars.githubusercontent.com/u/730316?v=4"},"body":"Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>\n---\n\nThis makes the new tracking output introduced by\n79a1e6b432d7d7ffaf2079d4cf895583502ca923 (checkout: notice when the\nswitched branch is behind or forked) obey the silence option.  FWIW, I\nwould really prefer only to get the one line informing me that I could\ndo a fast-forward or will need a merge unless I specifically ask for\nmore.  Is that something worth exploring?  Right now checkout is a bit\ntoo talkative for my taste.\n\n/Gustaf\n\n builtin-checkout.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin-checkout.c b/builtin-checkout.c\nindex b1820a4..104ce4f 100644\n--- a/builtin-checkout.c\n+++ b/builtin-checkout.c\n@@ -402,7 +402,7 @@ static void update_refs_for_switch(struct checkout_opts *opts,\n \t}\n \tremove_branch_state();\n \tstrbuf_release(&msg);\n-\tif (new->path || !strcmp(new->name, \"HEAD\"))\n+\tif (!opts->quiet && (new->path || !strcmp(new->name, \"HEAD\")))\n \t\tadjust_to_tracking(new, opts);\n }\n \n-- \n1.5.4.2.232.g08e5\n"}]}