“tfpt在线"使用 -diff... 可以忽略“只读"吗?属性? [英] "tfpt online" with -diff... can it ignore the "Read Only" attribute?

查看:20
本文介绍了“tfpt在线"使用 -diff... 可以忽略“只读"吗?属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为添加 -diff 选项意味着它忽略了只读"标志.它实际做的是获得 2 组文件的并集 1) 那些未设置只读"标志的文件和 2) 那些已被修改的文件(只读"标志可以保持设置)

I figured that adding the -diff option meant that it ignored the "Read Only" flag. What it actually does is get the union of 2 sets of files 1) those files that have their "Read Only" flag unset AND 2) those files that have been modified ("Read Only" flag can remain set)

$ tfpt online "D:\a\b\c.txt" -diff -preview
Getting your pending changes from the server...
Checking the status of D:\a\b\c.txt... Done
Walking D:\a\b\c.txt... Found 1

Showing potential changes only. No changes made.
Edits:

 edit: D:\a\b\c.txt
Showing potential changes only. No changes made.

$ tf diff  "D:\a\b\c.txt"
Comparing local to latest: D:\a\b\c.txt

$

我真正想要的是在线 tfpt 忽略只读"标志和仅列出实际已修改的文件.这可能吗?

What I'd really like is for tfpt online to ignore the "Read Only" flag and ONLY list files that have actually been modified. Is this possible?

推荐答案

遗憾的是,无法简单地将非只读文件列表排除在待编辑状态之外.但是,您可以使用强力工具的撤消不变"命令来撤消那些可写但没有内容差异的

Unfortunately, there's no way to simply exclude the list of files that are not read-only from being pended as edits. However, you can use the "undo unchanged" command of the power tool to undo those edits that were writable but did not have content differences:

tfpt online /diff [itemspec]
tfpt uu [itemspec]

tfpt uu 将再次比较散列值以确定服务器未更改的内容,因此显然比第一次忽略只读属性效率低,但最终应该解决你的问题.

tfpt uu will compare the hashes again to determine what's unchanged from the server, so it's obviously less efficient than if you were to ignore the read-only attribute the first time, but it should ultimately solve your problem.

这篇关于“tfpt在线"使用 -diff... 可以忽略“只读"吗?属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆