DaPhil
DaPhil

Reputation: 1599

By file commit message in Xcode version control

During a commit in Xcode, I can write a commit message. Is it somehow possible to write a commit message per file that is changed? Of course I am not changing all the project files at once all the time and it would be convenient that each file has it's own change log. Right now all files get the same change log and I have to mention which change effected which file.

Upvotes: 2

Views: 702

Answers (1)

Tim
Tim

Reputation: 43364

Right now all files get the same change log and I have to mention which change effected which file.

If you just want to be able to tell which files were changed in a change(commit) you can

  1. Open a terminal, navigate to the project directory and do

    $ git log --name-only
    

This gives an overview of which commit affected which files. This can of course be narrowed down to show it for a specific commit

$ git log commitHash --name-only
  1. Via Xcode

    Open the Source Control menu and select history

    enter image description here

    The commit log is now shown. Click on any commit's Show X modified files to see a list of files that were changed, and a full diff.

enter image description here

Diff snapshot:

enter image description here

Upvotes: 2

Related Questions