All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Shawn Landden <shawn@git.icu>
Cc: git@vger.kernel.org
Subject: Re: allow a differn't diff.context config for git format-patch
Date: Mon, 22 Apr 2019 23:06:49 -0400	[thread overview]
Message-ID: <20190423030648.GA6344@sigill.intra.peff.net> (raw)
In-Reply-To: <CA+49okrda1=dV=rN23oFg7LQmRp+idkDDDxFQ9R5jhGJFHKpEg@mail.gmail.com>

On Sun, Apr 14, 2019 at 04:48:53PM -0500, Shawn Landden wrote:

> When I send patches I want them to have lots of context, but when just
> looking at a diff, I can always open the file for context.

Seems like a reasonable thing to want. You can already use "git
format-patch -U20 ...". The usual advice for putting that in config is
to define an alias wit your preferred option. I don't think it would be
too big a problem for format-patch to learn some options to configure
its diffs. We already have some options in format.* for various things.

-Peff

  reply	other threads:[~2019-04-23  3:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-14 21:48 allow a differn't diff.context config for git format-patch Shawn Landden
2019-04-23  3:06 ` Jeff King [this message]
2019-04-23  3:45   ` Junio C Hamano
2019-04-23  3:55     ` Jeff King
2019-05-12 13:21       ` Shawn Landden
     [not found]       ` <CA+49okrzR7GAZCFDfaoJ9pvK+o=DVWoZ9vA6YL=u72s_rnjDxQ@mail.gmail.com>
2019-05-14  9:54         ` Jeff King
2019-05-14  9:57           ` 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=20190423030648.GA6344@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=shawn@git.icu \
    /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.