| 1 | package commandsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/ |
| 2 | |
| 3 | import "stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/" |
| 4 | |
| 5 | func gitLineEndingscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/gitLineEnding().(git envscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/env#) string { |
| 6 | value, _ := git.Getscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/env#Get.("core.autocrlf") |
| 7 | switch stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/.ToLowerscip-go gomod github.com/golang/go/src go1.25.0 strings/ToLower().(value) { |
| 8 | case "true", "t", "1": |
| 9 | return "\r\n" |
| 10 | default: |
| 11 | return osLineEndingscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/osLineEnding().() |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | type envscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/env# interface { |
| 16 | Getscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/env#Get.(string) (string, bool) |
| 17 | } |