go-git icon indicating copy to clipboard operation
go-git copied to clipboard

Status() in a repo with LFS files reports all LFS files as modified

Open sambonfire opened this issue 6 years ago • 2 comments

Simple programming just running this on my repo that has many LFS files in it:

	r, err := git.PlainOpen(*folder)
	CheckIfError(err)

	w, err := r.Worktree()
	CheckIfError(err)

	status, err := w.Status()

It reports all the LFS files as being modified.

It's also incredibly slow, but it looks like that's been captured in other reported issues.

sambonfire avatar Dec 17 '18 19:12 sambonfire

I met this problem too. All I want it to get the files to be committed. w.Status() gets LFS files and it took time to iterate them.

ImJeremyHe avatar Feb 22 '20 02:02 ImJeremyHe

Is this the same issue as #918 ?

cblomart avatar Mar 22 '20 15:03 cblomart