部分提交Subversion [英] Partial Commits with Subversion

查看:93
本文介绍了部分提交Subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于这种情况,我在 one 文件中进行了两个独立的更改:例如。添加了一个新方法并更改了另一个方法。



我经常不希望将这两个更改都提交为一个提交,而是作为两个独立提交。



在git存储库上,我将使用交互模式 linux.die.net/man/1/git-addrel =noreferrer> git-add(1) hunk 拆分成更小的:

  git add --patch 

使用Subversion执行此操作的最简单方法是什么? (甚至可能使用Eclipse插件)

更新
关于Git的事情,Ryan称之为:纠结的工作拷贝问题。

解决方案

使用git-svn,您可以创建远程SVN存储库的本地GIT存储库,使用完整的GIT功能设置(包括部分提交),然后将其全部推回到SVN存储库。

git-svn(1)


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 both changes as one commit, but as two independent commits.

On a git repository I would use the Interactive Mode of git-add(1) to split the hunk into smaller ones:

 git add --patch

What's the easiest way to do this with Subversion? (Maybe even using an Eclipse plug-in)

Update:
In The Thing About Git, Ryan calls it: "The Tangled Working Copy Problem."

解决方案

With git-svn you can make a local GIT repository of the remote SVN repository, work with it using the full GIT feature set (including partial commits) and then push it all back to the SVN repository.

git-svn (1)

这篇关于部分提交Subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆