<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 6, 2012, at 4:46 PM, Xiaoxiao Liu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 6:36 PM, Kris Zygmunt <span dir="ltr">&lt;<a href="mailto:krismz@sci.utah.edu">krismz@sci.utah.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div class="im"><br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br> &gt;&gt; "git mv" usually works for me. Sometimes when I forgot to do "git mv" at first. I usually end up doing "git add" for the rename files &nbsp;and &nbsp;then "git mv" to remove the old git file paths. And then git will still recognize the renaming without a problem.<br> <br> Did you make changes (including formatting) first to those files before doing "git mv"?<br> <br> <br> </blockquote> <br></div> I did the git mv first, then made the changes. &nbsp;Would it have been better to do it the other way around? &nbsp;I think that should be relatively easy to change as I have a patch file that will just apply the changes to the directory, then I can do the git mv . &nbsp;Preferences?</blockquote> <div><br></div><div>&gt;&gt; I think what you did was right:git mv first, and then make changes. I just did a quick experiment of doing "git mv" first, and then modified the newly-named file. I submit to gerrit just for reference&nbsp;:<a href="http://review.source.kitware.com/#/c/4193/">http://review.source.kitware.com/#/c/4193/</a>&nbsp;.</div> <div>So might be something else?</div><div><br></div><div>Will you send the "git status" msg after "git mv" and after your modifications?</div><div>&nbsp;&nbsp;</div><div><br></div></div></blockquote><div><br></div><div>Ok, &nbsp;I see what I did. &nbsp;Everything was looking good after the git mv and modifying my files, but part of the changes included adding some files to the new directory that weren't there in Modules/GPU/Common ie Modules/Core/GPUCommon/include/itkGPUFunctorBase.h . &nbsp;When I added these files to git, I got lazy and did&nbsp;</div><div><br></div><div>&nbsp; &nbsp;&gt;&gt;&gt; git add Modules/Core/GPUCommon/include Modules/Core/GPUCommon/src</div><div><br></div><div>instead of just adding the specific files. &nbsp;I did a git status afterwards, but did not notice then (though it's clear now) that this messed up the rest of the changes. &nbsp;I can redo all of this, is it possible to overwrite my GPUCommon branch in gerrit? &nbsp;Or supply a new patch that is what this patch should have been?</div><div><br></div><div>-Kris</div></div><br></body></html>