All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
To: Junio C Hamano <junkio@cox.net>
Cc: bonzini@gnu.org, git@vger.kernel.org
Subject: Re: [PATCH 1/3] git-branch: add --track and --no-track options
Date: Tue, 06 Mar 2007 08:48:09 +0100	[thread overview]
Message-ID: <45ED1CB9.7060508@lu.unisi.ch> (raw)
In-Reply-To: <7vlkiastu8.fsf@assigned-by-dhcp.cox.net>


> Do you mean you would agree that it is overkill?

It means I don't have much interest in trying to convince you your way.  I will try just once, and I have two arguments to make:

1) I added it in the first place because it made the design of patch 2/3 obvious.  If the shared configuration variable wins, I would withdraw patch 2/3 completely and just let the user use git-config (or "vi"...) to modify the default.

2) Also, I liked per-remote configuration because it gives you a quick view of which remotes you have just because you sometimes cherrypick from them, and which remotes you have because you are basing your work on them.

If you're convinced, I'll send the updated (final?) patch later today (which means you'll get it tomorrow morning in your timezone).  If you're not, I'm not sure I can update the patch today to use the shared configuration variable, but I'll get to that too.

> Also I agree with many points Dscho made.  I understand you
> agreed to avoid asprintf() from portability worries, which I
> think is a sensible thing to do.

Sure, I was somehow convinced that git was already providing a portable version of it.

> While I do not think we should avoid sscanf("%n"), I suspect
> that the code in your patch is not helped by using it that much.

No, it's not.  But it's helped a lot by using sscanf itself, and "%n" is the only way I know to reliably test the return code of sscanf and, in the process, save one strchr and one strlen.

Paolo

  reply	other threads:[~2007-03-06  7:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-05  8:57 [PATCH 1/3] git-branch: add --track and --no-track options Paolo Bonzini
2007-03-05 14:50 ` Johannes Schindelin
2007-03-05 15:22   ` Paolo Bonzini
2007-03-05 16:09     ` Johannes Schindelin
2007-03-05 17:22       ` Paolo Bonzini
2007-03-05 15:36   ` Paolo Bonzini
2007-03-05 15:58     ` Johannes Schindelin
2007-03-05 16:54       ` Paolo Bonzini
2007-03-05 17:16         ` Johannes Schindelin
2007-03-05 17:22           ` Paolo Bonzini
2007-03-05 18:37             ` Johannes Schindelin
2007-03-05 21:19               ` Paolo Bonzini
2007-03-05 21:27                 ` Junio C Hamano
2007-03-06  7:23                   ` Paolo Bonzini
2007-03-05 23:09                 ` Johannes Schindelin
2007-03-06  6:45 ` Junio C Hamano
2007-03-06  7:26   ` Paolo Bonzini
2007-03-06  7:40     ` Junio C Hamano
2007-03-06  7:48       ` Paolo Bonzini [this message]
2007-03-06  8:22         ` Junio C Hamano

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=45ED1CB9.7060508@lu.unisi.ch \
    --to=paolo.bonzini@lu.unisi.ch \
    --cc=bonzini@gnu.org \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.