(src_root)
return ret == 1
Check whether there are uncommitted changes in git
Check whether there are uncommitted changes in git
Check whether there are uncommitted changes in git
def git_have_dirty_index(src_root):
    '''Check whether there are uncommitted changes in git'''
    ret = subprocess.call(['git', '-C', src_root, 'diff-index', '--quiet', 'HEAD'])
    return ret == 1
def git_have_dirty_index ( src_root ) : ret = subprocess . call ( [ 'git' , '-C' , src_root , 'diff-index' , '--quiet' , 'HEAD' ] ) return ret == 1