Fix #23213 (cherry picked from commit cb6b33c9cd1efa619351a458e2bce8ad1e6cd623)
Showing the changes to services/gitdiff/gitdiff.go (1 of 2 files). Show all
Unified · Split
| @@ -1381,10 +1381,8 @@ func GetWhitespaceFlag(whitespaceBehavior string) git.TrustedCmdArgs { · 1380 unmodified lines | ||
| 1381 | 1381 | "ignore-eol": {"--ignore-space-at-eol"}, |
| 1382 | 1382 | "show-all": nil, |
| 1383 | 1383 | } |
| 1384 | − | |
| 1385 | 1384 | if flag, ok := whitespaceFlags[whitespaceBehavior]; ok { |
| 1386 | 1385 | return flag |
| 1387 | 1386 | } |
| 1388 | − log.Warn("unknown whitespace behavior: %q, default to 'show-all'", whitespaceBehavior) | |
| 1389 | 1387 | return nil |
| 1390 | 1388 | } |