Note that my diff solution above is not correct. It should be diff -R Z Z^ (diff between two revisions).
Eventually, I took this up in the main git list: http://www.spinics.net/lists/git/msg152112.html Conclusion was that it's a good idea to support git revert taking a path argument. In the mean while, here's a nice oneliner for reverting a change in one file: git show <commit> -- <path> | git apply -R -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
