aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/tree.go
diff options
context:
space:
mode:
authorAlberto Cortés <alberto@sourced.tech>2017-02-22 15:15:36 +0100
committerAlberto Cortés <alberto@sourced.tech>2017-02-22 17:37:39 +0100
commitcf4e8699879a2f8b2efad64a3efbbebb9cac39ef (patch)
tree96f136e2449f5dad9db06b769b63a5ad95aec8fa /plumbing/object/tree.go
parentd27c741e3b68357e46cc0a85a33a184fecc05c29 (diff)
downloadgo-git-cf4e8699879a2f8b2efad64a3efbbebb9cac39ef.tar.gz
difftree: ignore permissions changes between regular files
Fix issue #279.
Diffstat (limited to 'plumbing/object/tree.go')
-rw-r--r--plumbing/object/tree.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/plumbing/object/tree.go b/plumbing/object/tree.go
index 27d8578..436ac32 100644
--- a/plumbing/object/tree.go
+++ b/plumbing/object/tree.go
@@ -19,11 +19,12 @@ const (
maxTreeDepth = 1024
startingStackSize = 8
- FileMode os.FileMode = 0100644
- ExecutableMode os.FileMode = 0100755
- SubmoduleMode os.FileMode = 0160000
- SymlinkMode os.FileMode = 0120000
- TreeMode os.FileMode = 0040000
+ FileMode os.FileMode = 0100644
+ FileModeDeprecated os.FileMode = 0100664
+ ExecutableMode os.FileMode = 0100755
+ SubmoduleMode os.FileMode = 0160000
+ SymlinkMode os.FileMode = 0120000
+ TreeMode os.FileMode = 0040000
)
// New errors defined by this package.