git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Keith Cascio <keith@CS.UCLA.EDU>, git@vger.kernel.org
Subject: Re: [PATCH v2 1/2] Introduce config variable "diff.primer"
Date: Sat, 07 Feb 2009 13:45:39 -0800	[thread overview]
Message-ID: <7vocxdudj0.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: 20090206161954.GA18956@coredump.intra.peff.net

Jeff King <peff@peff.net> writes:

> Right, I am calling into question whether we want "--primer" at all.
> That is, if you think of it as just "prepend these command line options"
> we can get the same thing with something like:
>
>   git diff-tree `git config diff.primer` $other_options
>
> if the caller wants to be totally promiscuous, and
>
>   git diff-tree `git config diff.primer | filter_options` $other_options
>
> if it wants to be paranoid (and obviously in tcl the code would be
> different, but I think you can see the point).

I agree with this 100%.

Also, I think we should explain the semantics of diff.primer to new people
like that.  "The diff Porcelain command acts as if whatever you have in
diff.primer are prepended on your command line".

Which means that we do not have to touch the plumbing at all.  That allows
me sleep much better at night.

  reply	other threads:[~2009-02-07 21:47 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1233598855-1088-1-git-send-email-keith@cs.ucla.edu>
2009-02-02 18:20 ` [PATCH v2 1/2] Introduce config variable "diff.primer" Keith Cascio
2009-02-02 18:20   ` [PATCH v2 2/2] Test functionality of new " Keith Cascio
2009-02-02 20:45     ` [PATCH v2 0/2] Introduce " Keith Cascio
2009-02-02 21:03   ` Keith Cascio
2009-02-03  7:15   ` [PATCH v2 1/2] " Jeff King
2009-02-03 17:55     ` Keith Cascio
2009-02-04  5:43       ` Junio C Hamano
2009-02-04  6:36         ` Keith Cascio
2009-02-06 16:54           ` Jeff King
2009-02-06 16:19       ` Jeff King
2009-02-07 21:45         ` Junio C Hamano [this message]
2009-02-09 17:24         ` Keith Cascio
2009-02-13 22:22           ` Jeff King
2009-02-14  6:03             ` Johannes Schindelin
2009-02-14  6:15               ` Jeff King
2009-02-14  6:24                 ` Johannes Schindelin
2009-02-14 15:17                   ` Jeff King
2009-02-15 23:26                   ` Keith Cascio
2009-02-15 23:39                     ` Junio C Hamano
2009-02-17  7:24             ` diff.defaultOptions implementation design [was diff.primer] Keith Cascio
2009-02-17 19:56               ` Jeff King
2009-03-17 16:05     ` [PATCH v2 1/2] Introduce config variable "diff.defaultOptions" Keith Cascio
2009-03-20  7:01       ` Jeff King
2009-03-20 17:11         ` Keith Cascio
2009-03-20 19:49           ` Jeff King
2009-03-21  2:00             ` [PATCH/RFC v3] Introduce config variable "diff.defaultoptions" Keith Cascio
2009-03-21  3:15               ` [PATCH] Allow setting default diff options via diff.defaultOptions Johannes Schindelin
2009-04-03  0:04                 ` Keith Cascio
2009-04-09  8:45                   ` Johannes Schindelin
2009-04-09  8:49                     ` Jeff King
2009-04-09 10:43                       ` Johannes Schindelin
2009-04-10  8:01                         ` Jeff King
2009-04-13 22:37                           ` [PATCH] Add the diff option --no-defaults Johannes Schindelin
2009-04-16  8:34                             ` Jeff King
2009-04-16  9:25                               ` Johannes Schindelin
2009-04-16  9:41                                 ` Jeff King
2009-04-16 16:52                                   ` Junio C Hamano
2009-04-16 17:36                                     ` Johannes Schindelin
2009-04-17 11:54                                     ` Jeff King
2009-04-17 13:15                                       ` Johannes Schindelin
2009-04-18 16:41                                         ` Keith Cascio
2009-04-18 17:40                                           ` Johannes Schindelin
2009-04-18 20:32                                             ` Keith Cascio
2009-04-18 21:15                                               ` Johannes Schindelin
2009-04-09 16:29                     ` [PATCH] Allow setting default diff options via diff.defaultOptions Keith Cascio
2009-04-09  0:44                 ` Keith Cascio
2009-04-09  8:29                   ` Johannes Schindelin
2009-04-09  8:31                   ` Jeff King
2009-02-03 18:56   ` [PATCH v2 1/2] Introduce config variable "diff.primer" Jakub Narebski
2009-02-03 19:13     ` Keith Cascio

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=7vocxdudj0.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=keith@CS.UCLA.EDU \
    --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).