MCPcopy Create free account
hub / github.com/HypothesisWorks/hypothesis / has_changes

Function has_changes

tooling/src/hypothesistooling/git.py:53–64  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

51
52
53def has_changes(files):
54 command = [
55 "git",
56 "diff",
57 "--no-patch",
58 "--exit-code",
59 point_of_divergence(),
60 "HEAD",
61 "--",
62 *files,
63 ]
64 return subprocess.call(command) != 0
65
66
67def has_uncommitted_changes(filename):

Callers 2

wrappedFunction · 0.90
has_source_changesFunction · 0.90

Calls 1

point_of_divergenceFunction · 0.85

Tested by

no test coverage detected