

def min_hash_length():
    "\n    Determines the minimum length of an hash string for this repository\n    to uniquely describe a commit.\n    gitver's minimum length is 7 characters, to avoid frequent hash string\n    length variations in fast-growing projects.\n    "
    try:
        out = __git_raw('rev-list', '--all', '--abbrev=0', '--abbrev-commit').stdout
    except ErrorReturnCode:
        return 0
    min_accepted = 7
    commits = {len(commit) for commit in commits.split('\n') if (len(commit) >= min_accepted)}
    if (len(commits) > 0):
        return max(commits)
    return min_accepted

dataset/ETHPy150Open manuelbua/gitver/gitver/git.py min_hash_length/VarMisuse@54/166 `out`->`commits`