1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-26 04:22:05 +02:00

19 lines
302 B
Go
Raw Normal View History

2016-12-21 15:03:07 -02:00
package git
import "os/exec"
2017-01-14 12:34:22 -02:00
func log(previous, current string) (str string, err error) {
2016-12-21 15:03:07 -02:00
cmd := exec.Command(
"git",
"log",
"--pretty=oneline",
"--abbrev-commit",
previous+".."+current,
)
bts, err := cmd.CombinedOutput()
if err != nil {
return str, err
}
return string(bts), err
}