Explaining tf diff

后端 未结 2 1691
孤街浪徒
孤街浪徒 2021-02-02 03:38

Using Visual Studio 2008 tools,

I am trying to get an ASCII diff of change sets 14318 and 14317.

I can do so using GUI:

tf changeset 14318
         


        
2条回答
  •  不知归路
    2021-02-02 03:46

    You're just not using the correct syntax when calling it. In this case, it tried to do a diff between your working copy, and the base repository version, of (non-existing) files 14318 and 14317.

    What you need to do instead is to use a changeset range in /version, like this:

    tf diff $/Foo /version:C14317~C14318 /recursive /format:unified > foo.diff
    

    Note that you can use ~ with any other version specs - labels, dates etc. See here for details.

提交回复
热议问题