Hi Julien,

You can trace this with git log, but I don't think it's supported in git 
blame. 

Git is aware of file modes by default (although it can be 
disabled<http://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-mode-changes-chmod>
). 

> git log --summary

.. will include mode changes.

Example from playing around in my terminal (hope formatting comes out ok in 
google groups):


[12:43:57] [tfn...@tnicolaisen ../tfnico/temp/testing]$ chmod a+x woop 
[12:44:00] [tfn...@tnicolaisen ../tfnico/temp/testing]$ git st
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working 
directory)
#
# modified:   woop
#
no changes added to commit (use "git add" and/or "git commit -a")
[12:44:01] [tfn...@tnicolaisen ../tfnico/temp/testing]$ git diff  
diff --git a/woop b/woop
old mode 100644
new mode 100755
[12:44:06] [tfn...@tnicolaisen ../tfnico/temp/testing]$ git commit -am "Set 
a+x flag."
[master 1c5dead] Set a+x flag.
 0 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 woop

[13:07:36] [tfn...@tnicolaisen ../tfnico/temp/testing]$ git log --summary
commit 1c5deadd79556b4cdfc964e826597e60a42f752d
Author: Thomas Ferris Nicolaisen <tfn...@gmail.com>
Date:   Mon Jan 3 12:44:24 2011 +0100

    Set a+x flag.

 mode change 100644 => 100755 woop 


Hope this helps :)

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to