Are file permissions and owner:group properties included in git commits? -
are file permissions , owner:group properties included in git commits? how these properties of files , directories handled throughout git pipeline [commit, push, pull, merge, etc] ?
files in git assigned either 644 (owner rw-
, group , other r--
) or 755 (owner rwx
, group , other r-x
). ownership information not stored.
this deliberate, , well-explained this post git's maintainer, junio hamano:
actually in days, git used record full (mode & 0777) blobs.
once people started using git, realized had unpleasant side effect resulting tree depended on user's umasks, because 1 person records blob mode 664 , next person modifies file record mode 644, , made hard keep track of meaningful changes source code. issue fixed long time ago commit e447947 (be more liberal file mode bits., 2005-04-16).
Comments
Post a Comment