----- Original Message ----- 
  From: Severus 
  To: git-users@googlegroups.com 
  Sent: Tuesday, May 20, 2014 7:21 AM
  Subject: [git-users] Git file attributes


  Hi folks,

  I have used git for a long time, I found that when I change file attributes 
as chmod 755 file, git will mark as modified,

  It's wrong, because git should track modified time, not changed time, it does 
not change content of file,



It's by design. Git tracks _content_, which for this pupose includes the 
permission bits, but deliberately ignores the other stuff (time stamp and 
name). The date it records is the author and committer's commit date (they can 
become different in a patch workflow). 
Git doesn't even track empty directories (because there's no content ;-). File 
names are not stored with the content, rather they are stored with the tree 
heirachy data (so the same content can be re-used in many places - you probably 
knew that ;-)
  I think we should change this behaviour on next release.

The chance to change the design decision is long past.




  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.

Philip

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to