Re: Revert a single commit in a single file
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 25, 2011, 19:54 UTC
- Message-ID
- <7vei6vao0p.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTinzhd_nL265e7DZA4xEnXqDn-5m=9GPS7JsFY-S@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 15 quoted lines
> But just like we now have: > > Revert "some commit" > > This partially reverts commit <sha1>. > > We could have with <path>: > > Revert "some commit" > > This partially reverts commit <sha1>. Only the path <path> has > been reverted, which is X out of Y files changed in the original > commit. > > Or something like that.
Yes, that is exactly what I was suggesting, no?
On the similar line of thought, it might be a good idea to update the commit template we give slightly perhaps like...
Revert "some commit"
This partially reverts commit <sha1>.
+#
+# DESCRBE HERE how the change in <sha1>
+# was a wrong thing to do.