2016-09-26 70 views

回答

0

您可以通過運行fstat command來檢查文件是否標記爲添加。如果命令輸出包含字符串"action add",則表示該文件已被標記爲添加。

1

如果您使用-n選項,它將預覽添加操作,告訴您將添加哪些文件,但實際上不添加文件。

Source

p4 add -n testfile 
1

我個人使用下面兩個命令:

p4 diff -sa // to show list of all opened files 

p4 diff -se // to show list of all files that are with changes but not opened