MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / is_uncommitted_changes

Function is_uncommitted_changes

tools/release-set-version.py:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30# is there uncommitted changes in folder
31def is_uncommitted_changes():
32 for f in git(['status', '--short']).split('\n'):
33 if not f.startswith('??'):
34 return True
35 return False
36
37
38# get current git branch

Callers 1

set_versionFunction · 0.85

Calls 1

gitFunction · 0.85

Tested by

no test coverage detected