Partial Commits with Subversion

前端 未结 11 1103
北恋
北恋 2020-11-29 17:36

Given the case I made two independent changes in one file: eg. added a new method and changed another method.

I often don\'t want to commit

11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 18:18

    Tortoise SVN 1.8 now supports this with it's "Restore after commit" feature. This allow you to make edits to a file, with all of the edits being undone after the commit

    Per the documentation:

    To commit only the parts of the file that relate to one specific issue:

    1. in the commit dialog, right-click on file, choose "restore after commit"
    2. edit the file in e.g. TortoiseMerge: undo the changes that you don't want to commit yet
    3. save the file
    4. commit the file

提交回复
热议问题