Skip to content

Commit a30c116

Browse files
committed
cleaner commit messages
1 parent d41dfe7 commit a30c116

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

write.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ func (g *gitdb) insert(m Model) error {
7171
mID := ID(m)
7272

7373
//construct a commit message
74-
commitMsg := "Inserting " + mID + " into " + schema.blockID()
74+
commitMsg := "Inserting " + mID
7575
if _, err := dataBlock.Get(mID); err == nil {
76-
commitMsg = "Updating " + mID + " in " + schema.blockID()
76+
commitMsg = "Updating " + mID
7777
}
7878

7979
newRecordStr := string(newRecordBytes)
@@ -146,7 +146,7 @@ func (g *gitdb) dodelete(id string, failNotFound bool) error {
146146
if err == nil {
147147
log.Test("sending delete event to loop")
148148
g.commit.Add(1)
149-
g.events <- newDeleteEvent("Deleting "+id+" in "+blockFilePath, blockFilePath, g.autoCommit)
149+
g.events <- newDeleteEvent(fmt.Sprintf("Deleting %s", id), blockFilePath, g.autoCommit)
150150
g.waitForCommit()
151151
}
152152

0 commit comments

Comments
 (0)