git log of a single revision

zedoo picture zedoo · Nov 2, 2010 · Viewed 82.2k times · Source

I have a commit c. I want to get the changeset of that exact commit c + metainformation and no other one. Is there a simpler way than git log -p c^..c to do that?

Answer

Michał Trybus picture Michał Trybus · Nov 2, 2010

You can use show:

git show commit_id