git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gustaf Hendeby <hendeby@isy.liu.se>
To: git@vger.kernel.org
Cc: gitster@pobox.com, Gustaf Hendeby <hendeby@isy.liu.se>
Subject: [PATCH] checkout: obey -q option
Date: Thu, 21 Feb 2008 00:08:59 +0100	[thread overview]
Message-ID: <1203548939-17350-1-git-send-email-hendeby@isy.liu.se> (raw)

Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>
---

This makes the new tracking output introduced by
79a1e6b432d7d7ffaf2079d4cf895583502ca923 (checkout: notice when the
switched branch is behind or forked) obey the silence option.  FWIW, I
would really prefer only to get the one line informing me that I could
do a fast-forward or will need a merge unless I specifically ask for
more.  Is that something worth exploring?  Right now checkout is a bit
too talkative for my taste.

/Gustaf

 builtin-checkout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-checkout.c b/builtin-checkout.c
index b1820a4..104ce4f 100644
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
@@ -402,7 +402,7 @@ static void update_refs_for_switch(struct checkout_opts *opts,
 	}
 	remove_branch_state();
 	strbuf_release(&msg);
-	if (new->path || !strcmp(new->name, "HEAD"))
+	if (!opts->quiet && (new->path || !strcmp(new->name, "HEAD")))
 		adjust_to_tracking(new, opts);
 }
 
-- 
1.5.4.2.232.g08e5

                 reply	other threads:[~2008-02-20 23:09 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=1203548939-17350-1-git-send-email-hendeby@isy.liu.se \
    --to=hendeby@isy.liu.se \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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;
as well as URLs for NNTP newsgroup(s).