本文介绍了使用最新版本对所有修改过的文件进行差异化的 TFS 快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来非常轻松地启动多个文件的差异.

I'm looking for a way to kick off a diff on multiple files very easily.

我觉得不得不这样做很乏味:

I find it very tedious to have to:

  • 右键单击每个文件
  • 点击比较
  • 点击工作区版本.
  • 对更改集中的每个文件进行冲洗和重复

理想情况下,我希望能够突出显示更改集中的所有文件,并执行一个快速操作来启动差异工具的多个窗口,或者一个接一个地启动它们.

Ideally, I'd like to be able to highlight all of the files in my change set, and perform one quick action that launched multiple windows of a diff tool, or launches them one after the other.

很高兴知道我的问题与 这个问题 但我正在寻找一种批量执行此操作的方法.

It's it's probably good to know that my question is very similar to this question but I'm looking for a way to do this in bulk.

推荐答案

使用 Tf 命令行实用程序.它带有 Visual Studio.您将在开始"菜单中拥有一个特殊的命令提示符,其中加载了名为Visual Studio 命令提示符 (2010)"的工具.您应该cd 到解决方案的根目录.这样您就不必为命令提供服务器名称、凭据或工作区信息.它会自动捡起来.

Use the Tf Command Line Utility. It comes with Visual Studio. You'll have a special command prompt with the tools loaded called "Visual Studio Command Prompt (2010)" in the Start Menu. You should cd to the root directory for the solution. This way you don't have to provide the commands with a servername, credentials, or workspace information. It will pick it up automatically.

我运行了差异命令.没有任何参数,它会自动显示每个待处理更改的差异.

I ran the difference command. Without any parameters, it automatically shows the diff for every pending change.

D:\my-project> tf diff

当您关闭差异窗口时,将弹出下一个更改.

As you close the diff window, the next change will pop up.

这篇关于使用最新版本对所有修改过的文件进行差异化的 TFS 快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 15:21