Skip to content

Commit

Permalink
make sure there is a newline after each log line
Browse files Browse the repository at this point in the history
  • Loading branch information
larsla committed Apr 14, 2021
1 parent 568e5c5 commit db74661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (g *Git) History() (string, error) {
if prevHash != nil && c.Hash.String() == prevHash.String() {
return errors.New("EOF")
}
out = append(out, fmt.Sprintf("%s %s\n", c.Hash.String()[:7], strings.TrimSuffix(c.Message, "\n")))
out = append(out, fmt.Sprintf("%s %s\n\n", c.Hash.String()[:7], strings.TrimSuffix(c.Message, "\n")))

return nil
})
Expand Down

0 comments on commit db74661

Please sign in to comment.