1 2 3 4 5 6 7
#!/bin/sh # create log suitable for c&p into rpm changes file if [ -z "$1" ]; then set -- remotes/origin/master..master fi # no idea why it always prints those commit lines git rev-list --pretty=format:" - %s" "$@" |grep -v ^commit