mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
19 lines
302 B
Go
19 lines
302 B
Go
package git
|
|
|
|
import "os/exec"
|
|
|
|
func log(previous, current string) (str string, err error) {
|
|
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
|
|
}
|