2011-12-26 172 views
2

SVN的新功能之一是問題跟蹤器集成。這些讓你添加提交鉤子來使SVN解析錯誤或問題編號的日誌消息,並將它們與你的問題跟蹤系統相關聯。git svn dcommit bug id

enter image description here

我使用Git SVN通過混帳SVN的工作。 是三位中的任何possibilitty做出與錯誤ID提交,使用

git svn dcommit 

?非常感謝。

回答

1

文本框正在做的就是在提交消息的末尾附加<newline>Issue: %BUGID%。你應該能夠做到這一點,作爲git commit的一部分。 Git的每一次提交都是SVN的單獨提交,所有dcommit都會將這些提交推送到SVN。例如:

git commit -F- <<EOF 
Fixing issue in blah blah blah because of blah blah. 
Issue: 1234 
EOF 
//Any more commits... 
git svn dcommit 

可以爲更多的信息,請閱讀Add line break to git commit -m from command line大約GIT中換行提交。