Add merge_helpers.sh

Change-Id: Ia11bf326b360a9845c8df65d386c239b7b3eb414
This commit is contained in:
SpiritCroc 2020-09-08 18:38:11 +02:00
parent 700ff022d5
commit cc2058a58c
1 changed files with 13 additions and 0 deletions

13
merge_helpers.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
upstream_latest_tag() {
git describe upstream/master --tags
}
upstream_previous_tag() {
git describe `upstream_latest_tag`~1 --tags
}
upstream_diff() {
local latest_tag=`upstream_latest_tag`
local previous_tag=`upstream_previous_tag`
git diff "$previous_tag".."$latest_tag" "$@"
}