(configuration config.Configuration)
| 857 | } |
| 858 | |
| 859 | func createWipCommitMessage(configuration config.Configuration) string { |
| 860 | commitMessage := configuration.WipCommitMessage |
| 861 | |
| 862 | lastModifiedFilePath := getPathOfLastModifiedFile() |
| 863 | if lastModifiedFilePath != "" { |
| 864 | commitMessage += "\n\nlastFile:" + lastModifiedFilePath |
| 865 | } |
| 866 | |
| 867 | return commitMessage |
| 868 | } |
| 869 | |
| 870 | // uses git status --porcelain. To work properly files have to be staged. |
| 871 | func getPathOfLastModifiedFile() string { |
no test coverage detected