Lines Matching full:matches
13 echo " commit-subject Optional commit subject to help resolve between multiple matches"
51 local matches
52 readarray -t matches < <(git rev-parse --disambiguate="$commit_id" 2>/dev/null)
55 if [ ${#matches[@]} -eq 1 ]; then
56 echo "${matches[0]}"
60 # If no matches and not in force mode, return failure
61 if [ ${#matches[@]} -eq 0 ] && [ $force -eq 0 ]; then
71 # In force mode with no ID matches, use git log --grep directly
72 if [ ${#matches[@]} -eq 0 ] && [ $force -eq 1 ]; then
73 # Use git log to search, but filter to ensure subject matches exactly
87 # Normal subject matching for existing matches
88 for match in "${matches[@]}"; do
193 # Validate that the first argument matches at least one git commit