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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to