write-yourself-a-git icon indicating copy to clipboard operation
write-yourself-a-git copied to clipboard

Need to add support to branches/tags to object_resolve

Open cameronsstone opened this issue 6 years ago • 1 comments

Add code like this just before return candidates:

    # search for branches and tags (with or without "refs" and "heads" or "tags" prefixes)
    for path in [f'refs/heads/{name}', f'refs/tags/{name}', f'refs/{name}', name]:
        if os.path.exists(repo_file(repo, path)):
            candidates.append(ref_resolve(repo, path))

cameronsstone avatar Mar 19 '19 16:03 cameronsstone

Thanks!

thblt avatar Mar 25 '19 13:03 thblt