How to commit code separately for app project with nested framework project in Xcode

Per the instructions in Apps with Multiple Xcode Projects to set up an app project with a nested framework project in Xcode, the project navigator looks like this:

When I make changes to files in the framework and/or files in the app, clicking on Source Control > Commit in the Xcode menu brings up the Commit window showing all the files I have modified (both the app and the framework) with a checkbox next to them.

How can I commit files for the app and the framework separately? Whatever commit message I write would be applied to both projects in the commit, which wouldn't be correct. What is the proper thing to do?