@@ -37,9 +37,6 @@ func (e *Extractor) ExtractNextCommit() (*object.Commit, error) {
37
37
return e .iter .Next ()
38
38
}
39
39
40
- // FastExtractor will directly extract the information without using an Analyzer
41
- // There are designed to use raw git commands to get what is needed
42
-
43
40
func GetBasePathGoGitRepo (r * git.Repository ) (string , error ) {
44
41
//
45
42
// Try to grab the repository Storer
@@ -57,19 +54,6 @@ func GetBasePathGoGitRepo(r *git.Repository) (string, error) {
57
54
return fs .Root (), nil
58
55
}
59
56
60
- //type BaseGitFileIterator struct {
61
- // repository *git.Repository
62
- // filesChan chan *GitFile
63
- //}
64
- //
65
- //func (i *BaseGitFileIterator) Compute(repository *git.Repositor) error {
66
- //
67
- //}
68
- //
69
- //func (i *BaseGitFileIterator) Close() error {
70
- //
71
- //}
72
-
73
57
type BaseExtractor interface {
74
58
Next () (interface {}, error )
75
59
}
@@ -85,6 +69,8 @@ func NewFastExtractor() *FastExtractor {
85
69
return & FastExtractor {make (chan * GitFile )}
86
70
}
87
71
72
+ // FastExtractor will directly extract the information without using an Analyzer
73
+ // There are designed to use raw git commands to get what is needed.
88
74
type FastExtractor struct {
89
75
ChanGitFiles chan * GitFile
90
76
}
@@ -148,13 +134,3 @@ func (fe *FastExtractor) Run(repository *git.Repository) chan *GitFile {
148
134
149
135
return fe .ChanGitFiles
150
136
}
151
-
152
- //targetFile := fe.BaseDirStorage + "/" + "sha_files.jsonl"
153
- //log.Infof("Saving to file %s", targetFile)
154
- //dataFile, err := os.Create(targetFile)
155
- //if err != nil {
156
- // log.Error(err)
157
- //}
158
- //defer dataFile.Close()
159
- //_, err = dataFile.WriteString(out.String())
160
- //return err
0 commit comments