def completeCommit(self, text, append=' ', append_exact=False):
        matches = []
        ref_names = self.repoCache.getRefNames()
        # Also match against the special COMMIT_WD and COMMIT_INDEX names.
        ref_names.extend([git.COMMIT_INDEX, git.COMMIT_WD])
        for ref in ref_names:
            # Match against any trailing part of the ref name
            # for example, if the ref is "refs/heads/foo",
            # first try to match against the whole thing, then against
            # "heads/foo", then just "foo"
            while True:
                if ref.startswith(text):
                    matches.append(ref)
                parts = ref.split('/', 1)
                if len(parts) < 2:
                    break
                ref = parts[1]

        for alias in self.review.getCommitAliases():
            if alias.startswith(text):
                matches.append(alias)

        if append and len(matches) == 1:
            # If there is only 1 match, check to see if we should append
            # the string specified by append.
            #
            # If append_exact is true, only append if the text matches
            # the full commit name.
            if (not append_exact) or (matches[0] == text):
                matches[0] += append

        return matches
The user to remove can be referenced by their globally unique user ID or their email address.
dataset/ETHPy150Open facebookarchive/git-review/src/gitreview/review/cli_reviewer.py/CliReviewer.completeCommit--crossover with--dataset/ETHPy150Open Asana/python-asana/asana/resources/gen/teams.py/_Teams.remove_user