From: Eric Wong <normalperson@yhbt.net>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH] pass transport verbosity down to git_connect
Date: Fri, 29 Jan 2016 00:38:16 +0000 [thread overview]
Message-ID: <20160129003816.GA26200@dcvr.yhbt.net> (raw)
In-Reply-To: <20160128235339.GB10308@sigill.intra.peff.net>
Jeff King <peff@peff.net> wrote:
> On Thu, Jan 28, 2016 at 10:51:23PM +0000, Eric Wong wrote:
> > -static int connect_setup(struct transport *transport, int for_push, int verbose)
> > +static int connect_setup(struct transport *transport, int for_push)
> > {
> > struct git_transport_data *data = transport->data;
> > + int flags = transport->verbose > 0 ? CONNECT_VERBOSE : 0;
>
> Do we want to trigger this only for "transport->verbose > 1"?
>
> Right now, "git fetch -v" gives us a verbose status table (i.e.,
> includes up-to-date refs), but no more debugging than that. Should we
> reserve more debug-ish information like for "git fetch -vv"?
I'm not sure, I've never used "-v" at all in the past with fetch.
On one hand, I suspect someone who looks up "-v" and uses it is likely
wondering: "why is it so slow?" At least, that's what I did before
resorting to strace :)
On the other hand, I'm not sure if there's anything parsing the stderr
out of "git fetch -v" right now. In that case, perhaps only changing
"-vv" (and documenting it) is a better idea. I've always been of the
opinion stderr is for humans and test suites, only; and not considered
an interface somebody should be parsing.
For reference, "curl -v" includes connection info which I rely on
all the time.
Junio:
I'm leaning towards putting the test into t/t5570-git-daemon.sh
to avoid potential port conflicts if that's OK with you.
It doesn't seem like we have a lot of fetch tests on the git://
at all.
next prev parent reply other threads:[~2016-01-29 0:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-28 22:51 [PATCH] pass transport verbosity down to git_connect Eric Wong
2016-01-28 23:45 ` Junio C Hamano
2016-01-30 8:50 ` [PATCH v2] " Eric Wong
2016-01-30 13:13 ` [PATCH 2/1] support -4 and -6 switches for remote operations Eric Wong
2016-01-30 13:28 ` Eric Wong
2016-01-30 23:34 ` Torsten Bögershausen
2016-01-31 0:01 ` Eric Wong
2016-01-31 1:13 ` Jeff King
2016-02-03 4:09 ` [PATCH v2 " Eric Wong
2016-02-12 11:31 ` Eric Wong
2016-02-12 15:43 ` Torsten Bögershausen
2016-01-31 16:03 ` [PATCH " Torsten Bögershausen
2016-01-28 23:53 ` [PATCH] pass transport verbosity down to git_connect Jeff King
2016-01-29 0:38 ` Eric Wong [this message]
2016-01-29 3:19 ` Junio C Hamano
2016-01-29 3:47 ` Jeff King
2016-01-29 17:34 ` Junio C Hamano
2016-01-29 17:41 ` Jeff King
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=20160129003816.GA26200@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/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).