diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-26 00:43:17 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-26 00:43:17 +0200 |
commit | a97ca42cbce377b5725ecc41e4539fc7e263b90d (patch) | |
tree | bea68575b221b80b32fb74e8af584c89802f5586 /examples | |
parent | a3418c5e0a3c6e925b5a4fb3ecb1d3db56408d1a (diff) | |
download | go-git-a97ca42cbce377b5725ecc41e4539fc7e263b90d.tar.gz |
Tree, fix modes
Diffstat (limited to 'examples')
-rw-r--r-- | examples/basic/main.go | 5 |
1 files changed, 0 insertions, 5 deletions
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 }) |