Skip to content

Conversation

@kl2400033266
Copy link

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 # Open specific commit
git open -c # Open current commit (HEAD)

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 <commit-hash>  # Open specific commit
  git open -c                 # Open current commit (HEAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant