Re: [RFC] refer to post-patch lines in whitespace warnings

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Barkalow <barkalow@...>
Cc: <git@...>
Date: Wednesday, January 9, 2008 - 4:22 pm

Daniel Barkalow <barkalow@iabervon.org> writes:


The message is more appropriate for a workflow to "git apply --check"
first, fix the patchfile and then applying for real.


In such a case, "git diff" will highlight the non-compliant whitespace.

More problematic is if you used whitespace=warn to let it commit anyway.
You can use "git diff $beginning_of_series..HEAD" the same way
to locate the breakages, but you then need to do "rebase -i" to
fix it up (I personally would run "format-patch", fix the problems in
the patch text, and run "am", instead of "rebase -i", mostly
because I am used to working that way).


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] refer to post-patch lines in whitespace warnings, Daniel Barkalow, (Wed Jan 9, 11:57 am)
Re: [RFC] refer to post-patch lines in whitespace warnings, Junio C Hamano, (Wed Jan 9, 4:22 pm)
Re: [RFC] refer to post-patch lines in whitespace warnings, Daniel Barkalow, (Wed Jan 9, 5:35 pm)