mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Use git diff to detect changes in rebuild-image
This commit is contained in:
@@ -29,7 +29,7 @@ cached_image_rev() {
|
||||
has_changes() {
|
||||
local rev1=$1
|
||||
local rev2=$2
|
||||
local changes=$(git log --oneline $rev1..$rev2 -- $INPUTFILES | wc -l)
|
||||
local changes=$(git diff --oneline $rev1..$rev2 -- $INPUTFILES | wc -l)
|
||||
[ "$changes" -gt 0 ]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user