Re: Revert a single commit in a single file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael, my comment was about "reverting the changes from the old
commit, but only for specified path/file", sorry about non quoting it.

I think that ''the old commit" is HEAD~1, so reverting it is about
checking out HEAD~2, and commiting the results. The same is for a
given file.

On Fri, Feb 25, 2011 at 11:38 AM, Thomas Ferris Nicolaisen
<tfnico@xxxxxxxxx> wrote:
> Dario: Yes, I understand the reasoning. It's not often a problem, and
> when it occurs there are ways to do it. I just thought I'd bring it up
> on the list cause it feels like expected behavior (other git commands
> behave correspondingly).

Yeah, and may be your reasoning is better for the principle of least surprise.

Cheers,
Dario
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]