git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug v1.9.3: Spurious whitespace warnings when using git apply with the --exclude option
@ 2014-08-06 17:13 Peyton Randolph
  2014-08-06 20:12 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Peyton Randolph @ 2014-08-06 17:13 UTC (permalink / raw)
  To: git

Bug v1.9.3: Spurious whitespace warnings when using git apply with the --exclude option

REPRO STEPS:
1. Create a patch PATCH that modifies two files, A and B. Make sure the modifications to file A add whitespace errors and the modifications to file B do not.
2. Apply that patch to a repo using git apply PATCH --exclude A

ACTUAL RESULT:
git apply outputs a "warning: n lines add whitespace errors.” where n is the number of lines with whitespace errors in A. 

EXPECTED RESULT:
No warning about adding whitespace errors because no whitespace errors are added to the tree since A is excluded and B has no whitespace errors.

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

end of thread, other threads:[~2014-08-06 22:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 17:13 Bug v1.9.3: Spurious whitespace warnings when using git apply with the --exclude option Peyton Randolph
2014-08-06 20:12 ` Junio C Hamano
2014-08-06 22:58   ` [PATCH 0/3] Two fixes to "git apply" Junio C Hamano
2014-08-06 22:58     ` [PATCH 1/3] apply: use the right attribute for paths in non-Git patches Junio C Hamano
2014-08-06 22:58     ` [PATCH 2/3] apply: hoist use_patch() helper for path exclusion up Junio C Hamano
2014-08-06 22:58     ` [PATCH 3/3] apply: omit ws check for excluded paths Junio C Hamano

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