I have read the manual for git diff here http://git-scm.com/docs/git-diff and I did not find an answer.
I'm using git diff origin/master
according to this format git diff [--options] <commit> <commit> [--] [<path>…]
(omitted commit == HEAD) after a git fetch
to see what changes have been done before I do my git merge origin/master
.
It's realy usefull and I can review the code before applying the changes. My only problem is that I'm working in a team and I want to know which commiter did the change on every file.
I did not find any option of git diff
that show the committer. What's the easiest way to see the committer (if possible with git diff
)
EDIT :
I see that my question was not detailled enough.
For example, when I do a git diff
I get:
--- a/path/to/my/file.html
+++ b/path/to/my/file.html
@@ -xx,y +xx,y @@
- {% if sett.value|lower != "false" %}
+ {% if sett.value|lower != False %}
So I know that someone change this line and commit it. Idealy I want to have something like :
User John Doe commit the following :
--- a/path/to/my/file.html
+++ b/path/to/my/file.html
@@ -xx,y +xx,y @@
- {% if sett.value|lower != "false" %}
+ {% if sett.value|lower != False %}