aboutsummaryrefslogtreecommitdiffstats
path: root/examples/basic/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/main.go')
-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
})