From a97ca42cbce377b5725ecc41e4539fc7e263b90d Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Fri, 26 Aug 2016 00:43:17 +0200 Subject: Tree, fix modes --- examples/basic/main.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'examples/basic/main.go') diff --git a/examples/basic/main.go b/examples/basic/main.go index 4cdfa4b..1d59a6b 100644 --- a/examples/basic/main.go +++ b/examples/basic/main.go @@ -39,11 +39,6 @@ func main() { tree, _ := commit.Tree() // ... get the files iterator and print the file tree.Files().ForEach(func(f *git.File) error { - // we ignore the tree - if f.Mode.Perm() == 0 { - return nil - } - fmt.Printf("100644 blob %s %s\n", f.Hash, f.Name) return nil }) -- cgit