aboutsummaryrefslogtreecommitdiffstats
path: root/examples/basic
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-26 00:43:17 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-26 00:43:17 +0200
commita97ca42cbce377b5725ecc41e4539fc7e263b90d (patch)
treebea68575b221b80b32fb74e8af584c89802f5586 /examples/basic
parenta3418c5e0a3c6e925b5a4fb3ecb1d3db56408d1a (diff)
downloadgo-git-a97ca42cbce377b5725ecc41e4539fc7e263b90d.tar.gz
Tree, fix modes
Diffstat (limited to 'examples/basic')
-rw-r--r--examples/basic/main.go5
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
})