git-open
git-open copied to clipboard
Support specifying commit hash with -c option
Allow users to pass a specific commit hash with the -c option instead of always using HEAD.
Changes:
- Modified the option spec to accept a value with -c option (c,commit=)
- Added commit_hash variable to store the provided commit hash
- Updated option parsing to capture the commit hash argument
- Updated commit URL generation to use provided hash or fallback to HEAD
Usage:
git open -c