How to keep the header comments up to date in Xcode

后端 未结 3 1076
刺人心
刺人心 2021-02-05 18:38

Xcode has a habit of putting all kinds of (redundant) information at the top of each code file it creates, containing copyright notices, class names, project names and client na

3条回答
  •  迷失自我
    2021-02-05 19:24

    Short Answer: Use SCM Commit Hooks (git example, svn example, cvs example)

    Reason: Well, you can be rest assured that XCode will not do it. What XCode can do is attach itself to version control system. Its fairly simple to do using commit hooks that most SCMs support. They fire up before/after the commit/push so that source code is updated. You can even send automated emails when commiting etc.

    Since GIT is the most popular one in my opinion these days, see this article.

提交回复
热议问题