<br><br><div class="gmail_quote">On Fri, Jul 2, 2010 at 10:43, Francois Bertel <span dir="ltr"><<a href="mailto:francois.bertel@kitware.com">francois.bertel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Stephane,<br>
<br>
I guess you created your patch with:<br>
$ git show > vtk-hexa.diff<br>
<br>
because when I try to apply it:<br>
$ cd VTK<br>
$ git am -3 -i -s -u ~/vtk-hexa.diff<br>
<br>
I have the following error:<br>
Patch format detection failed.<br>
<br>
Then I tried to apply the patch directly:<br>
$ git apply --whitespace=fix ~/vtk-hexa.diff<br>
<br>
I have this output (ignore the trailing whitespace messages, the error<br>
is about VolumeRendering/Testing/Cxx/CMakeLists.txt):<br>
<br>
vtk-hexa.diff:54: trailing whitespace.<br>
// setup of source -> mapper -> actor -> renderer -> renderwindow is<br>
vtk-hexa.diff:105: trailing whitespace.<br>
<br>
vtk-hexa.diff:119: trailing whitespace.<br>
<br>
vtk-hexa.diff:150: trailing whitespace.<br>
<br>
vtk-hexa.diff:158: trailing whitespace.<br>
<br>
error: patch failed: VolumeRendering/Testing/Cxx/CMakeLists.txt:30<br>
error: VolumeRendering/Testing/Cxx/CMakeLists.txt: patch does not apply<br>
<br>
<br>
Can you send me the patch again, please?<br>
<br>
Make sure you call "$git pull --rebase" first.<br>
<br>
Can you instead send me a patch created with "git format-patch", please?<br>
<br>
For example,<br>
$ git format-patch 'HEAD^..HEAD'<br>
will return the last commit.<br>
<br></blockquote><div><br>There you go. Alternatively, I can put a git tree online if that works better with you guys.<br><br>Stephane<br><br></div></div>