Can I commit only parts of my code using SVN or Mercurial?

前端 未结 6 1430
梦谈多话
梦谈多话 2021-02-01 02:11

I use Tortoise SVN usuallly, but I have been looking into Mercurial since it is a distributed revision control system.

What I am looking for, in both systems, is a tool

6条回答
  •  有刺的猬
    2021-02-01 02:45

    Mercurial now provides an option --interactive (or -i) to the commit command, which enables this functionality right out of the box.

    This works directly from the command-line so it's perfect if you are a command-line enthusiast!

    Running

    > hg commit -i
    

    begins an interactive session which allows examination, editing and recording of individual changes to create a commit.

    This behaves very similarly to the --patch and --interactive options for the git add and git commit commands.

提交回复
热议问题