git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: git@vger.kernel.org
Cc: Nanako Shiraishi <nanako3@lavabit.com>
Subject: [PATCH 0/4] Colouring whitespace errors in diff -B output
Date: Mon, 14 Sep 2009 23:15:02 -0700	[thread overview]
Message-ID: <1252995306-32329-1-git-send-email-gitster@pobox.com> (raw)

Here is a 4-patch miniseries to teach "diff -B" output routines to detect
and colour whitespace errors like we do for normal patches.

The first three patches are only about moving code around without changing
anything.

The last one hooks "diff -B" logic to the per-line output routines in a
way that mimicks how the normal patches are fed to them better, in order
to take advantage of all the existing whitespace error detection and
colouring logic.

Junio C Hamano (4):
      diff.c: shuffling code around
      diff.c: split emit_line() from the first char and the rest of the line
      diff.c: emit_add_line() takes only the rest of the line
      diff -B: colour whitespace errors

 diff.c |  327 +++++++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 180 insertions(+), 147 deletions(-)

             reply	other threads:[~2009-09-15  6:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15  6:15 Junio C Hamano [this message]
2009-09-15  6:15 ` [PATCH 1/4] diff.c: shuffling code around Junio C Hamano
2009-09-15  6:15 ` [PATCH 2/4] diff.c: split emit_line() from the first char and the rest of the line Junio C Hamano
2009-09-15  6:15 ` [PATCH 3/4] diff.c: emit_add_line() takes only " Junio C Hamano
2009-09-15  6:15 ` [PATCH 4/4] diff -B: colour whitespace errors Junio C Hamano
2009-09-15  6:52 ` [PATCH 0/4] Colouring whitespace errors in diff -B output Nanako Shiraishi
2009-09-15 20:12   ` 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=1252995306-32329-1-git-send-email-gitster@pobox.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=nanako3@lavabit.com \
    /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).