Temple Termagant
Posts: 6
Joined: Tuesday, 3rd December 2013, 21:56
Git Patching Questions
I'm fairly new to git so I have a few questions regarding patches.
I have been experimenting with the crawl code by adding in a new species, and after a bit of trial and error, committed some additions and made a patch out of them. However, I found a few whitespace errors my code and while they were simple to fix, I am having trouble applying these fixes to my patch.
The best I can do is commit the fixes and make a new patch out of them, which gives me two patches, one with the changes, and one with the fix to the changes. How do I just 'update' my first patch to have the fixes?
Another question: How would I go about 'uncommitting' my changes to the code? I would like to test if applying the patch to a fresh install would work. I could clone the crawl code again, but is there a better way?