Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6897035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:07:09+00:00 2026-05-27T07:07:09+00:00

What is the difference between the 2 commands below. I see different outputs. Both

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:07:10+00:00Added an answer on May 27, 2026 at 7:07 am

    As mentioned in the git whatchanged man page:

    Shows commit logs and diff output each commit introduces.
    The command internally invokes git rev-list piped to git diff-tree, and takes command line options for both of these commands.

    The "piped to git diff-tree" would explain the different output between both commands.

    You can find an example of git rev-list combined with a git diff in "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:

    New users are encouraged to use git log instead. The whatchanged command is essentially the same as git log but defaults to show the raw format diff output and to skip merges.

    The command is kept primarily for historical reasons; fingers of many people who learned Git long before git log was invented by reading Linux kernel mailing list are trained to type it.

    See more at "Difference between git-log and git-whatchanged?".

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the difference between the following two commands, when run on AIX? /bin/sh
What is the difference between these two commands? git commit -m added a new
What is the difference between the following two commands? SELECT * FROM table WHERE
Any idea whats the difference between the two commands below? Command: manage.py runfcgi method=threaded
What is the difference between a space and a slash when running git commands?
I am having trouble understanding the difference between these two commands that in my
What is the practical difference between the following two commands? Command A find .
What is the difference between the following two commands? sort -u FILE sort FILE
What is the difference between following commands: start %comspec% /c script.cmd start cmd /C
What`s the difference between this 2 commands (i want to rollback to revision 1):

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.