Has someone tried to do "git revert <commit> -- <path>"

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

 



Sometimes I want to partially revert a commit, what I'll do is:

    git revert --no-commit <commit> &&
    git reset &&
    git add <paths> &&
    git commit

At which point I'll manually type in the commit window:

    Partially revert "description(<commit>)"

    This partially reverts <commit>. Only <paths> have been reverted.

Has someone tried to patch the revert logic to just support an
optional paths parameter, in which case this wouldn't need to be so
hard.
--
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]