我想将 TFS 中两个版本之间的差异生成为统一的差异文件。我愿意
tf diff $/TFSPATH/PROJECT/FOLDER /recursive /version:C12345~C12346 /format:unified
生成的输出包含我想要的文件中的所有差异,但它还包含它比较的每个文件夹的 4 附加行,即使没有差异。因此,对于给定变更集之间几乎没有实际代码更改的大型项目,会生成一个差异文件,其中包含 90+% 的行,例如:
Diff folder : $/TFSPATH/PROJECT/FOLDER/SUB/SUB1;C12345
against folder: $/TFSPATH/PROJECT/FOLDER/SUB/SUB1;C12346
===================================================================
Diff folder : $/TFSPATH/PROJECT/FOLDER/SUB/SUB1/SUB;C12345
against folder: $/TFSPATH/PROJECT/FOLDER/SUB/SUB1/SUB;C12346
===================================================================
有没有办法告诉tf
不包括这些行?
谢谢