MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / createWipCommitMessage

Function createWipCommitMessage

mob.go:859–868  ·  view source on GitHub ↗
(configuration config.Configuration)

Source from the content-addressed store, hash-verified

857}
858
859func 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.
871func getPathOfLastModifiedFile() string {

Callers 1

makeWipCommitFunction · 0.85

Calls 1

Tested by

no test coverage detected