项目导航器中文件旁边的 Xcode 字母

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7267390/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:51:09  来源:igfitidea点击:

Xcode letters beside files in Project Navigator

xcode

提问by Vincent Bacalso

enter image description here

在此处输入图片说明

What are the significance of the letters beside the files in the Project Navigator? (e.g M,A)

项目导航器中文件旁边的字母有什么意义?(例如 M,A)

回答by Vladimir

Those letters beside files in the Project Navigator of Xcode show the status of files that are under version control systems, such as SVN or Git. So, for instance:

Xcode 的 Project Navigator 中文件旁边的那些字母显示了在版本控制系统(例如 SVN 或 Git)下的文件的状态。因此,例如:

  • M - means the file has changed and it should be merged into SCM
  • A - means this is a new file and should be added to SCM
  • U - means this is a newer version of a file on SCM and you need to update it
  • ? - means the file has not been added to source control
  • etc...
  • M - 表示文件已更改,应合并到 SCM
  • A - 表示这是一个新文件,应该添加到 SCM
  • U - 表示这是 SCM 上文件的较新版本,您需要更新它
  • ? - 表示该文件尚未添加到源代码管理中
  • 等等...

P.S. You can find list of statuses (at least for SVN) here

PS 您可以在此处找到状态列表(至少对于 SVN)

回答by Georgia

A - Added (This is a new file that has been added to the repository)

A - 已添加(这是已添加到存储库的新文件)

C - Conflict (There is a conflict in the file)

C - Conflict(文件有冲突)

D - Deleted (a file has been deleted)

D - 已删除(文件已被删除)

M - Modified (An existing file has been changed)

M - 修改(现有文件已更改)

R - Renamed (The file has been renamed)

R - 重命名(文件已重命名)

U - Untracked (The file is new or has been changed but has not been added to the repository yet)

U - 未跟踪(文件是新的或已更改但尚未添加到存储库中)

回答by Leander

Well, my project is not part of source control, yet the same icons are there. So there must be more to it.

好吧,我的项目不是源代码管理的一部分,但那里有相同的图标。所以必须有更多的东西。

UPDATE: Bacalso Vincent is correct, I did enable GIT on creating the project. I had completely forgotten about that though.

更新:Bacalso Vincent 是正确的,我确实在创建项目时启用了 GIT。不过我已经完全忘记了。