diff options
author | Alberto Cortés <alberto@sourced.tech> | 2017-02-22 15:15:36 +0100 |
---|---|---|
committer | Alberto Cortés <alberto@sourced.tech> | 2017-02-22 17:37:39 +0100 |
commit | cf4e8699879a2f8b2efad64a3efbbebb9cac39ef (patch) | |
tree | 96f136e2449f5dad9db06b769b63a5ad95aec8fa /plumbing/object | |
parent | d27c741e3b68357e46cc0a85a33a184fecc05c29 (diff) | |
download | go-git-cf4e8699879a2f8b2efad64a3efbbebb9cac39ef.tar.gz |
difftree: ignore permissions changes between regular files
Fix issue #279.
Diffstat (limited to 'plumbing/object')
-rw-r--r-- | plumbing/object/tree.go | 11 |
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. |