We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ba107 commit a994dacCopy full SHA for a994dac
cmd/commands/todos.go
@@ -7,7 +7,6 @@ import (
7
"github.com/augmentable-dev/tickgit/pkg/comments"
8
"github.com/augmentable-dev/tickgit/pkg/todos"
9
"github.com/spf13/cobra"
10
- "gopkg.in/src-d/go-git.v4"
11
)
12
13
func init() {
@@ -29,16 +28,7 @@ var todosCmd = &cobra.Command{
29
28
handleError(err)
30
}
31
32
- r, err := git.PlainOpen(dir)
33
- handleError(err)
34
-
35
- ref, err := r.Head()
36
37
38
- commit, err := r.CommitObject(ref.Hash())
39
40
41
- comments, err := comments.SearchCommit(commit)
+ comments, err := comments.SearchDir(dir)
42
43
44
t := todos.NewToDos(comments)
0 commit comments