This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# git-blob-ids: List blobs (hash id and path) in a git repo | |
# | |
# Usage: git-blob-ids [-s] [-r REF] [-p PATH] | |
# | |
# -r REF an optional reference to a commit (hash or symbolic like HEAD), default: HEAD | |
# -p PATH an option path to a subtree in repo, default is blank for root tree | |
# -s shortens blob hash ids to 6 characters | |
# |