Closed wkloucek closed 2 years ago
Looks OK. Is there a way to contribute this sort of change upstream? Or is it going to break lots of other uses of getFileStatsFromFilePatches?
I'll look into it. Actually it's more about the diff.Stats()
function I removed in this PR. getFileStatsFromFilePatches
is a private function that nobody external can use.
I don't think that the behaviour of diff.Stats()
can be altered but one could introduce a diff.AllStats()
Before this PR, changed binary files and submodule ref updates wouldn't be accounted as changed (even they did change).
Now they are also counted as change and therefore can be used for skipping / not skipping a pipeline.
Example before this PR on the owncloud/core repository:
While
git diff --name-only 46de3c5cf386ba5c99e3309bad12655dbb74c073...a1bdb4f87c09f4484b3a6be32ea18fbda65db5c7
returns:Same example after this PR:
Reported in https://github.com/owncloud-ci/drone-skip-pipeline/pull/37