File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,14 @@ dist *args="":
3232 {{ GIT_DIR}} / scripts/ dist.sh {{ args}}
3333
3434# create a new release
35- release * args = " ":
35+ release * args = " ": clean generate
3636 {{ GIT_DIR}} / scripts/ release.sh {{ args}}
3737
38+ changes from = " " to = " ":
39+ #!/ bin/ sh
40+ source {{ GIT_DIR}} / scripts/ functions.sh
41+ get_changes {{ from}} {{ to}}
42+
3843clean :
3944 @ # generated files
4045 @ echo " rm -r pkg/server/assets"
5459
5560# ---
5661
57- _ unreleased :
58- @ git log --oneline $(git describe --tags --abbrev=0)...HEAD
59-
6062_ system-info :
6163 @ echo " {{ os ()}} _{{ arch ()}} "
Original file line number Diff line number Diff line change @@ -44,3 +44,14 @@ is_dirty() {
4444is_tagged () {
4545 test -n " $( get_tag) "
4646}
47+
48+ get_changes () {
49+ from=${1:- $(git describe --tags --abbrev=0)}
50+ to=${2:- HEAD}
51+
52+ if [ " ${from} " == " $( git describe --tags --exact-match ${to} 2> /dev/null) " ]; then
53+ from=$( git describe --tags --abbrev=0 --exclude=${from} )
54+ fi
55+
56+ git log --oneline --no-decorate ${from} ..${to}
57+ }
You can’t perform that action at this time.
0 commit comments