git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/2] git apply: cope with whitespace differences
@ 2009-07-04 11:53 Giuseppe Bilotta
  2009-07-04 11:53 ` [PATCHv2 1/2] git apply: option to ignore " Giuseppe Bilotta
  2009-07-04 11:53 ` [PATCHv2 2/2] git apply: preserve original whitespace with --ignore-whitespace Giuseppe Bilotta
  0 siblings, 2 replies; 4+ messages in thread
From: Giuseppe Bilotta @ 2009-07-04 11:53 UTC (permalink / raw)
  To: git; +Cc: Giuseppe Bilotta

This second version includes significant cleanups and improvements to my
previous attempt at a --ignore-whitespace option for git-apply.

Following Junio's review, the patch now includes proper handling for
leading whitespace (specifically the case when one part has it and the
other one doesn't), and more test cases.

The second patch fixes the updating of the postimage when whitespace is
adjusted to match the target.

Giuseppe Bilotta (2):
  git apply: option to ignore whitespace differences
  git apply: preserve original whitespace with --ignore-whitespace

 builtin-apply.c                        |  108 +++++++++++++++++++++++++++++---
 contrib/completion/git-completion.bash |    2 +
 git-am.sh                              |    3 +-
 git-rebase.sh                          |    3 +
 t/t4107-apply-ignore-whitespace.sh     |  107 +++++++++++++++++++++++++++++++
 5 files changed, 214 insertions(+), 9 deletions(-)
 create mode 100755 t/t4107-apply-ignore-whitespace.sh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-05 23:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-04 11:53 [PATCHv2 0/2] git apply: cope with whitespace differences Giuseppe Bilotta
2009-07-04 11:53 ` [PATCHv2 1/2] git apply: option to ignore " Giuseppe Bilotta
2009-07-05 23:21   ` Ramsay Jones
2009-07-04 11:53 ` [PATCHv2 2/2] git apply: preserve original whitespace with --ignore-whitespace Giuseppe Bilotta

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).