Lines Matching full:commit
6 echo "Usage: $(basename "$0") [--selftest] [--force] <commit-id> [commit-subject]"
7 …echo "Resolves a short git commit ID to its full SHA-1 hash, particularly useful for fixing refere…
11 echo " --force Try to find commit by subject if ID lookup fails"
12 echo " commit-id Short git commit ID to resolve"
13 echo " commit-subject Optional commit subject to help resolve between multiple matches"
37 # Split input into commit ID and subject
50 # Get all possible matching commit IDs
108 '12345678' # Non-existent commit
109 '12345 ("I'\''m a dummy commit")' # Valid prefix but wrong subject
121 "" # Expect empty output for non-existent commit
123 "ffef737fd0372ca462b5be3e7a592a8929a82752" # Should find commit by subject in force mode
134 1 # Expect failure for non-existent commit
193 # Validate that the first argument matches at least one git commit
195 echo "Error: '$1' does not match any git commit"