Last active
November 24, 2023 15:44
-
-
Save gandro/6c7b63c2c6dea64376ecbf437b73b8ee to your computer and use it in GitHub Desktop.
Extract the git tree hash for a given directory
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/sh | |
exec git -C "${1?"Usage: $0 <pathname> [commit]"}" rev-parse "${2:-HEAD}:./" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment