Make sure we have enough diff context in pointer text to cope with extensions

This commit is contained in:
Steve Streeting 2015-08-05 10:46:14 +01:00
parent 90ce6386ab
commit b5d098a897
2 changed files with 3 additions and 4 deletions

@ -31,8 +31,8 @@ var (
// lfs changes and format the output suitable for parseLogOutput.. method(s) // lfs changes and format the output suitable for parseLogOutput.. method(s)
logLfsSearchArgs = []string{ logLfsSearchArgs = []string{
"-G", "oid sha256:", // only diffs which include an lfs file SHA change "-G", "oid sha256:", // only diffs which include an lfs file SHA change
"-p", // include diff so we can read the SHA "-p", // include diff so we can read the SHA
"-U3", // Make sure diff context is always the same (used to ensure we always see all of pointer data) "-U10", // Make sure diff context is always big enough to support extension lines to get whole pointer
`--format=lfs-commit-sha: %H %P`, // just a predictable commit header we can detect `--format=lfs-commit-sha: %H %P`, // just a predictable commit header we can detect
} }
) )

@ -2,10 +2,9 @@ package lfs
import ( import (
"strings" "strings"
"testing"
"github.com/github/git-lfs/vendor/_nuts/github.com/technoweenie/assert" "github.com/github/git-lfs/vendor/_nuts/github.com/technoweenie/assert"
"testing"
) )
var ( var (