Eclipse:在签入之前跟踪我已更改的所有文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6774250/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse: Keeping track of all the files that I have changed before checking in?
提问by kaushalc
When I have changed a lot of files I usually forget checking in some of them and this breaks the build. I have tried maintaining lists but it doesnt work. Is there any good plugin to Eclipse that tells me all the files that have been changed since my last checkin?
当我更改了很多文件时,我通常会忘记签入其中的一些文件,这会破坏构建。我试过维护列表,但它不起作用。Eclipse 有没有什么好的插件可以告诉我自上次签入以来所有更改的文件?
回答by Paul Webster
And in general you use the Synchronize View. Team providers (Git, CVS) hook into it, and it will show you a delta between what's checked in and what is dirty in your workspace.
通常,您使用Synchronize View。团队提供者(Git、CVS)连接到它,它会显示您工作区中已检入的内容和脏的内容之间的差值。
Use Window>Show View>Other...to open the view, or switch to the Team Synchronizingperspective.
使用Window>Show View>Other...打开视图,或切换到Team Synchronizing透视图。
EDIT: I'll just add if you are using EGit, there's also the Git Stagingview. It will show you all modified files for the current repo.
编辑:如果您使用的是 EGit,我将添加,还有Git Staging视图。它将显示当前存储库的所有修改文件。
回答by Deepak Azad
The CVS tooling in Eclipse allows you to maintain changesets. This allows you to group together files - in synchronize view - which have changed for a particular task. More details can be found at http://www.peterfriese.de/using-cvs-change-sets/
Eclipse 中的 CVS 工具允许您维护变更集。这允许您在同步视图中将已针对特定任务更改的文件组合在一起。更多细节可以在http://www.peterfriese.de/using-cvs-change-sets/找到
回答by VonC
The Egitwhich comes with Eclipse Indigo will mark any directory with modified content.
Eclipse Indigo 附带的Egit将标记任何带有修改内容的目录。
See the Track Changessection of the Egit man page.
No need to install any extra VCS: all is included with the latest Eclipse distro.
请参阅Egit 手册页的跟踪更改部分。
无需安装任何额外的 VCS:所有内容都包含在最新的Eclipse 发行版中。