threads / bug / 45036

BUG: "git checkout -q -b foo origin/foo" is not quiet

Subject: BUG: "git checkout -q -b foo origin/foo" is not quiet

## tl;dr

4 messages between Feb 3, 2017 and Feb 6, 2017.

replies: 3people: 2as markdown or json

Kevin Layer· Feb 3, 2017, 18:20 UTC · lore

$ git checkout -q -b foo origin/foo Branch foo set up to track remote branch foo from origin.

I said -q because I didn't want *any* output.

I looked at the git sources, on the maint branch, and it appears to still be the case. I see this behavior on 1.7.1.

Kevin
Kevin Layer· Feb 3, 2017, 21:36 UTC · re: Kevin Layer · lore

Re: BUG: "git checkout -q -b foo origin/foo" is not quiet

Note that git version 1.8.3.1 is quiet and does not print the "tracking remote" message.

On Fri, Feb 3, 2017 at 10:20 AM, Kevin Layer <layer@known.net> wrote:
Show 10 quoted lines
> $ git checkout -q -b foo origin/foo
> Branch foo set up to track remote branch foo from origin.
>
> I said -q because I didn't want *any* output.
>
> I looked at the git sources, on the maint branch, and it appears to
> still be the case.
> I see this behavior on 1.7.1.
>
> Kevin
Cornelius Weig· Feb 4, 2017, 00:55 UTC · re: Kevin Layer · lore

Re: BUG: "git checkout -q -b foo origin/foo" is not quiet

On 02/03/2017 10:36 PM, Kevin Layer wrote:
> Note that git version 1.8.3.1 is quiet and does not print the
> "tracking remote" message.

So what you are saying is, that git v1.8.3.1 *is* quiet, but v1.7.1 is not? Sounds like a fixed bug to me.

I also checked with the latest version and it did not print anything when used with -q.

You seem to urgently need quiet branch creation. Have you thought about dumping unwanted output in the shell? E.g. in bash

$ git whatever >&/dev/null
Kevin Layer· Feb 6, 2017, 16:38 UTC · re: Cornelius Weig · lore

Re: BUG: "git checkout -q -b foo origin/foo" is not quiet

Yeah, my bad.  I was confused.  Sorry for the noise.

On Fri, Feb 3, 2017 at 4:55 PM, Cornelius Weig <cornelius.weig@tngtech.com> wrote:

Show 15 quoted lines
> On 02/03/2017 10:36 PM, Kevin Layer wrote:
>> Note that git version 1.8.3.1 is quiet and does not print the
>> "tracking remote" message.
>
> So what you are saying is, that git v1.8.3.1 *is* quiet, but v1.7.1 is
> not? Sounds like a fixed bug to me.
>
> I also checked with the latest version and it did not print anything
> when used with -q.
>
>
> You seem to urgently need quiet branch creation. Have you thought about
> dumping unwanted output in the shell? E.g. in bash
>
> $ git whatever >&/dev/null

← back to recent threads