What is the difference between the 2 commands below. I see different outputs.
Both are run from a clone having a single branch.
git whatchanged -m -- foo.c
git rev-list --reverse --all -- foo.c
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As mentioned in the
git whatchangedman page:The "piped to
git diff-tree" would explain the different output between both commands.You can find an example of
git rev-listcombined with agit diffin "In git, how can I get the diff between all the commits that occured between two dates?".Update September 2013:
The new version of the man page for git whatchanged now emphasizes:
See more at "Difference between
git-logandgit-whatchanged?".