Commit Graph

12 Commits

Author SHA1 Message Date
brian m. carlson
228e31fb20
status: update index before showing status
When running `git lfs status`, we perform a `git diff-index`.  However,
we don't update the index first, so any changes, such as permissions
changes due to locking, cause the file to be listed as modified.  Since
these changes don't represent actual changes that we're interested in,
refresh the index before running diff-index so that it doesn't produce
spurious output.
2019-11-18 20:37:52 +00:00
Lars Schneider
cddf98f88f move git diff-index invocation to git package using gitBuffered
Git is called with the LFS filter here.
No functional changes are intended.
2017-08-22 19:34:29 +02:00
Taylor Blau
7f9cbbee67 lfs: make DiffIndexStatus implement fmt.Formatter 2017-03-16 15:23:21 -06:00
Taylor Blau
e16214c6a1 lfs: include a legend for parsing the output from diff-index 2017-03-16 10:03:32 -06:00
Taylor Blau
f09d9b0f10 lfs: don't wrap errors with 'diff-index:' prefix 2017-03-16 09:44:10 -06:00
Taylor Blau
a289d7f647 lfs: typos 2017-03-16 09:42:42 -06:00
Taylor Blau
42407fb918 lfs: don't re-wrap nil errors 2017-03-15 14:59:43 -06:00
Taylor Blau
a1b19cc560 lfs: re-wrap errors from DiffIndexScanner.Scan() 2017-03-15 14:43:09 -06:00
Taylor Blau
ce358305e6 lfs: don't return *wrappedCmd from NewDiffIndexScanner() 2017-03-15 14:41:50 -06:00
Taylor Blau
f435f1fa62 lfs: rename 'Status' to 'DiffIndexStatus'
$ gorename -from '"github.com/git-lfs/git-lfs/lfs".Status' -to DiffIndexStatus
2017-03-15 14:40:01 -06:00
Taylor Blau
b66a106915 lfs/diff_index_scanner: add documentation 2017-03-15 12:17:53 -06:00
Taylor Blau
c9871c4b93 lfs: introduce DiffIndexScanner 2017-03-14 21:50:38 -06:00