From: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>,
Robert Fitzsimons <robfitz@273k.net>,
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Subject: [PATCH 0/2] git apply: cope with whitespace differences
Date: Thu, 2 Jul 2009 14:52:15 +0200 [thread overview]
Message-ID: <1246539137-24754-1-git-send-email-giuseppe.bilotta@gmail.com> (raw)
A small patchset that allows git-apply (and thus git-am and git-rebase)
to cope with whitespace differences that would otherwise generate a conflict.
The first patch is basically an update of Rober Fitzsimons' previous work
http://permalink.gmane.org/gmane.comp.version-control.git/7876
whereas the second one is entirely mine and makes the context lines
match the original instead of the patched whitespace.
Giuseppe Bilotta (2):
git apply: option to ignore whitespace differences
git apply: preserve original whitespace with --ignore-whitespace
builtin-apply.c | 83 ++++++++++++++++++++++++++++++--
contrib/completion/git-completion.bash | 2 +
git-am.sh | 3 +-
git-rebase.sh | 3 +
t/t4107-apply-ignore-whitespace.sh | 74 ++++++++++++++++++++++++++++
5 files changed, 159 insertions(+), 6 deletions(-)
create mode 100755 t/t4107-apply-ignore-whitespace.sh
next reply other threads:[~2009-07-02 12:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 12:52 Giuseppe Bilotta [this message]
2009-07-02 12:52 ` [PATCH 1/2] git apply: option to ignore whitespace differences Giuseppe Bilotta
2009-07-02 12:52 ` [PATCH 2/2] git apply: preserve original whitespace with --ignore-whitespace Giuseppe Bilotta
2009-07-02 16:46 ` [PATCH 1/2] git apply: option to ignore whitespace differences Junio C Hamano
2009-07-02 17:46 ` Giuseppe Bilotta
2009-07-02 18:29 ` 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=1246539137-24754-1-git-send-email-giuseppe.bilotta@gmail.com \
--to=giuseppe.bilotta@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=robfitz@273k.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).