Debian Codegraph @

lfs/gitscanner_refs.go

raw symbols SCIP
1 package lfsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/
2
3 import (
4 "encoding/hexscip-go gomod github.com/golang/go/src go1.25.0 `encoding/hex`/"
5 "syncscip-go gomod github.com/golang/go/src go1.25.0 sync/"
6
7 "github.com/git-lfs/git-lfs/v3/configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/"
8 "github.com/git-lfs/git-lfs/v3/gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/"
9 )
10
11 // The nameMap structure provides a goroutine-safe mapping of Git object IDs
12 // (as SHA hex strings) to their pathspecs, either fully-qualified directory
13 // paths for trees or file paths for blobs, as returned by "git rev-list".
14 type nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap# struct {
15 namesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#names. map[string]string
16 mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#mutex. *syncscip-go gomod github.com/golang/go/src go1.25.0 sync/.Mutexscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#
17 }
18
19 func (m *nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#) getNamescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#getName().(sha string) (string, bool) {
20 m.mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#mutex..Lockscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#Lock().()
21 name, ok := m.namesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#names.[sha]
22 m.mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#mutex..Unlockscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#Unlock().()
23 return name, ok
24 }
25
26 func (m *nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#) setNamescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#setName().(sha, name string) {
27 m.mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#mutex..Lockscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#Lock().()
28 m.namesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#names.[sha] = name
29 m.mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#mutex..Unlockscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#Unlock().()
30 }
31
32 func newNameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/newNameMap().() *nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap# {
33 return &nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#{
34 namesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#names.: make(map[string]string, 0),
35 mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#mutex.: &syncscip-go gomod github.com/golang/go/src go1.25.0 sync/.Mutexscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#{},
36 }
37 }
38
39 type lockableNameSetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet# struct {
40 nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#nameMap. *nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#
41 setscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#set. GitScannerSetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScannerSet#
42 }
43
44 // Determines if the given blob sha matches a locked file.
45 func (s *lockableNameSetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#) Checkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#Check().(blobSha string) (string, bool) {
46 if s == nil || s.nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#nameMap. == nil || s.setscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#set. == nil {
47 return "", false
48 }
49
50 name, ok := s.nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#nameMap..getNamescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#getName().(blobSha)
51 if !ok {
52 return name, ok
53 }
54
55 if s.setscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#set..Containsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScannerSet#Contains.(name) {
56 return name, true
57 }
58 return name, false
59 }
60
61 func noopFoundLockablescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/noopFoundLockable().(name string) {}
62
63 // scanRefsToChan scans through all unique objects reachable from the
64 // "include" refs and not reachable from any "exclude" refs and invokes the
65 // provided callback for each pointer file, valid or invalid, that it finds.
66 // Reports unique OIDs once only, not multiple times if more than one file
67 // has the same content.
68 func scanRefsToChanscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/scanRefsToChan().(scanner *GitScannerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#, pointerCb GitScannerFoundPointerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScannerFoundPointer#, include, exclude []string, gitEnv, osEnv configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/.Environmentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#) error {
69 revs, nameMap, err := revListShasscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/revListShas().(scanner, include, exclude)
70 if err != nil {
71 return err
72 }
73
74 lockableSet := &lockableNameSetscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#{nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#nameMap.: nameMap, setscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/lockableNameSet#set.: scanner.potentialLockablesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#potentialLockables.}
75 smallShas, batchLockableCh, err := catFileBatchCheckscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/catFileBatchCheck().(revs, lockableSet)
76 if err != nil {
77 return err
78 }
79
80 lockableCb := scanner.foundLockablescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#foundLockable.
81 if lockableCb == nil {
82 lockableCb = noopFoundLockablescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/noopFoundLockable().
83 }
84
85 go func(cb GitScannerFoundLockablescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScannerFoundLockable#, ch chan string) {
86 for name := range ch {
87 cb(name)
88 }
89 }(lockableCb, batchLockableCh)
90
91 pointers, checkLockableCh, err := catFileBatchscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/catFileBatch().(smallShas, lockableSet, gitEnv, osEnv)
92 if err != nil {
93 return err
94 }
95
96 for p := range pointers.Resultsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/PointerChannelWrapper#Results. {
97 if name, ok := nameMap.getNamescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#getName().(p.Sha1scip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/WrappedPointer#Sha1.); ok {
98 p.Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/WrappedPointer#Name. = name
99 }
100
101 if scanner.Filterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#Filter..Allowsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/filepathfilter`/Filter#Allows().(p.Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/WrappedPointer#Name.) {
102 pointerCb(p, nil)
103 }
104 }
105
106 for lockableName := range checkLockableCh {
107 if scanner.Filterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#Filter..Allowsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/filepathfilter`/Filter#Allows().(lockableName) {
108 lockableCb(lockableName)
109 }
110 }
111
112 if err := pointers.Waitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/BaseChannelWrapper#Wait().(); err != nil {
113 pointerCb(nil, err)
114 }
115
116 return nil
117 }
118
119 // scanRefsToChanSingleIncludeExclude scans through all unique objects
120 // reachable from the "include" ref and not reachable from the "exclude" ref
121 // and invokes the provided callback for each pointer file, valid or invalid,
122 // that it finds.
123 // Reports unique OIDs once only, not multiple times if more than one file
124 // has the same content.
125 func scanRefsToChanSingleIncludeExcludescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/scanRefsToChanSingleIncludeExclude().(scanner *GitScannerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#, pointerCb GitScannerFoundPointerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScannerFoundPointer#, include, exclude string, gitEnv, osEnv configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/.Environmentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#) error {
126 return scanRefsToChanscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/scanRefsToChan().(scanner, pointerCb, []string{include}, []string{exclude}, gitEnv, osEnv)
127 }
128
129 // scanRefsToChanSingleIncludeMultiExclude scans through all unique objects
130 // reachable from the "include" ref and not reachable from any "exclude" refs
131 // and invokes the provided callback for each pointer file, valid or invalid,
132 // that it finds.
133 // Reports unique OIDs once only, not multiple times if more than one file
134 // has the same content.
135 func scanRefsToChanSingleIncludeMultiExcludescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/scanRefsToChanSingleIncludeMultiExclude().(scanner *GitScannerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#, pointerCb GitScannerFoundPointerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScannerFoundPointer#, include string, exclude []string, gitEnv, osEnv configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/.Environmentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#) error {
136 return scanRefsToChanscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/scanRefsToChan().(scanner, pointerCb, []string{include}, exclude, gitEnv, osEnv)
137 }
138
139 // scanRefsByTree scans through all objects reachable from the "include" refs
140 // and not reachable from any "exclude" refs and invokes the provided callback
141 // for each pointer file, valid or invalid, that it finds.
142 // Objects which appear in multiple trees will be visited once per tree.
143 func scanRefsByTreescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/scanRefsByTree().(scanner *GitScannerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#, pointerCb GitScannerFoundPointerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScannerFoundPointer#, include, exclude []string, gitEnv, osEnv configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/.Environmentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#) error {
144 revs, _, err := revListShasscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/revListShas().(scanner, include, exclude)
145 if err != nil {
146 return err
147 }
148
149 errchan := make(chan error, 20) // multiple errors possible
150 wg := &syncscip-go gomod github.com/golang/go/src go1.25.0 sync/.WaitGroupscip-go gomod github.com/golang/go/src go1.25.0 sync/WaitGroup#{}
151
152 for r := range revs.Resultsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/StringChannelWrapper#Results. {
153 wg.Addscip-go gomod github.com/golang/go/src go1.25.0 sync/WaitGroup#Add().(1)
154 go func(rev string) {
155 defer wg.Donescip-go gomod github.com/golang/go/src go1.25.0 sync/WaitGroup#Done().()
156 err := runScanTreeForPointersscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/runScanTreeForPointers().(pointerCb, rev, gitEnv, osEnv)
157 if err != nil {
158 errchan <- err
159 }
160 }(r)
161 }
162
163 wg.Waitscip-go gomod github.com/golang/go/src go1.25.0 sync/WaitGroup#Wait().()
164 close(errchan)
165 for err := range errchan {
166 if err != nil {
167 return err
168 }
169 }
170
171 return revs.Waitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/BaseChannelWrapper#Wait().()
172 }
173
174 // revListShas uses git rev-list to return the list of object sha1s
175 // for the given ref. If all is true, ref is ignored. It returns a
176 // channel from which sha1 strings can be read, and a map of the sha1
177 // object IDs to their pathspecs, which will be populated as the sha1
178 // strings are written to the channel.
179 func revListShasscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/revListShas().(scanner *GitScannerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#, include, exclude []string) (*StringChannelWrapperscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/StringChannelWrapper#, *nameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#, error) {
180 nameMap := newNameMapscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/newNameMap().()
181 revListScanner, err := gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/.NewRevListScannerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/NewRevListScanner().(include, exclude, &gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/.ScanRefsOptionsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#{
182 Modescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#Mode.: gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/.ScanningModescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanningMode#(scanner.modescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#mode.),
183 SkipDeletedBlobsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#SkipDeletedBlobs.: scanner.skipDeletedBlobsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#skipDeletedBlobs.,
184 CommitsOnlyscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#CommitsOnly.: scanner.commitsOnlyscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#commitsOnly.,
185 Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#Remote.: scanner.remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#remote.,
186 SkippedRefsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#SkippedRefs.: scanner.skippedRefsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/GitScanner#skippedRefs.,
187 Namesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#Names.: nameMap.namesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#names.,
188 Mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/ScanRefsOptions#Mutex.: nameMap.mutexscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#mutex.,
189 })
190
191 if err != nil {
192 return nil, nil, err
193 }
194
195 revs := make(chan string, chanBufSizescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/chanBufSize.)
196 errs := make(chan error, 5) // may be multiple errors
197
198 go func() {
199 for revListScanner.Scanscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/RevListScanner#Scan().() {
200 sha := hexscip-go gomod github.com/golang/go/src go1.25.0 `encoding/hex`/.EncodeToStringscip-go gomod github.com/golang/go/src go1.25.0 `encoding/hex`/EncodeToString().(revListScanner.OIDscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/RevListScanner#OID().())
201 if name := revListScanner.Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/RevListScanner#Name().(); len(name) > 0 {
202 nameMap.setNamescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/nameMap#setName().(sha, name)
203 }
204 revs <- sha
205 }
206
207 if err = revListScanner.Errscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/RevListScanner#Err().(); err != nil {
208 errs <- err
209 }
210
211 if err = revListScanner.Closescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/RevListScanner#Close().(); err != nil {
212 errs <- err
213 }
214
215 close(revs)
216 close(errs)
217 }()
218
219 return NewStringChannelWrapperscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/NewStringChannelWrapper().(revs, errs), nameMap, nil
220 }