Retrieve git's prepared message. Operations such as git revert/cherry-pick/merge with the -n option stop just short of creating a commit with the changes and save their prepared message in .git/MERGE_MSG so the next git-commit execution can present it to the
(self)
| 1079 | |
| 1080 | @property |
| 1081 | def message(self) -> str: |
| 1082 | """ |
| 1083 | Retrieve git's prepared message. |
| 1084 | |
| 1085 | Operations such as git revert/cherry-pick/merge with the -n option stop |
| 1086 | just short of creating a commit with the changes and save their |
| 1087 | prepared message in .git/MERGE_MSG so the next git-commit execution can |
| 1088 | present it to the user for them to amend if they wish. |
| 1089 | |
| 1090 | Use this function to get the contents of this file. Don't forget to |
| 1091 | call `Repository.remove_message()` after you create the commit. |
| 1092 | |
| 1093 | Note that the message is also removed by `Repository.state_cleanup()`. |
| 1094 | |
| 1095 | If there is no such message, an empty string is returned. |
| 1096 | """ |
| 1097 | return self.raw_message.decode('utf-8') |
| 1098 | |
| 1099 | def remove_message(self) -> None: |
| 1100 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected