code: func comparePaths(rawSearchPath, rawConfigPath string) int {
  	f := func(c rune) bool {
  		return c == '/'
  	}
  	searchPath := strings.FieldsFunc(rawSearchPath, f)
  	configPath := strings.FieldsFunc(rawConfigPath, f)
  
  	if len(searchPath) < len(configPath) {
  		return 0
  	}
  
  	// Start with a base score of 1, so we return something above 0 for a
  	// zero-length path
  	score := 1
  
  	for i, element := range configPath {
  		searchElement := searchPath[i]
  
  		if element == searchElement {
  			score += 2
  			continue
  		}
  
  		if isDefaultLFSUrl(searchElement, searchPath, i+1) {
  			if searchElement[0:len(searchElement)-4] == element {
  				// Since we matched without the `.git` prefix, only add one
  				// point to the score instead of 2
  				score++
  				continue
  			}
  		}
  
  		return 0
  	}
  
  	return score
  }
docs: // comparePaths compares a path with a configuration path to determine a match.
  // It returns an integer indicating the strength of the match, or 0 if the two
  // paths did not match.