Skip to content

Commit a994dac

Browse files
committed
return default behavior of todos cmd to search file system
1 parent 59ba107 commit a994dac

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

cmd/commands/todos.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"github.com/augmentable-dev/tickgit/pkg/comments"
88
"github.com/augmentable-dev/tickgit/pkg/todos"
99
"github.com/spf13/cobra"
10-
"gopkg.in/src-d/go-git.v4"
1110
)
1211

1312
func init() {
@@ -29,16 +28,7 @@ var todosCmd = &cobra.Command{
2928
handleError(err)
3029
}
3130

32-
r, err := git.PlainOpen(dir)
33-
handleError(err)
34-
35-
ref, err := r.Head()
36-
handleError(err)
37-
38-
commit, err := r.CommitObject(ref.Hash())
39-
handleError(err)
40-
41-
comments, err := comments.SearchCommit(commit)
31+
comments, err := comments.SearchDir(dir)
4232
handleError(err)
4333

4434
t := todos.NewToDos(comments)

0 commit comments

Comments
 (0)