commands: rename possiblyMalformedSmudge to possiblyMalformedObjectSize

This commit is contained in:
Taylor Blau 2017-08-15 09:47:00 -06:00
parent 910ef2d70a
commit 72c15d2826
2 changed files with 3 additions and 3 deletions

@ -80,7 +80,7 @@ func filterCommand(cmd *cobra.Command, args []string) {
if errors.IsNotAPointerError(err) {
malformed = append(malformed, req.Header["pathname"])
err = nil
} else if possiblyMalformedSmudge(n) {
} else if possiblyMalformedObjectSize(n) {
malformedOnWindows = append(malformedOnWindows, req.Header["pathname"])
}

@ -102,7 +102,7 @@ func smudgeCommand(cmd *cobra.Command, args []string) {
} else {
Error(err.Error())
}
} else if possiblyMalformedSmudge(n) {
} else if possiblyMalformedObjectSize(n) {
fmt.Fprintln(os.Stderr, "Possibly malformed smudge on Windows: see `git lfs help smudge` for more info.")
}
}
@ -114,7 +114,7 @@ func smudgeFilename(args []string) string {
return "<unknown file>"
}
func possiblyMalformedSmudge(n int64) bool {
func possiblyMalformedObjectSize(n int64) bool {
return n > 4*humanize.Gigabyte && runtime.GOOS == "windows"
}