Git log formats

Given a repository with a single commit:

git init
touch "file.txt"
git add file.txt
git commit -m "Subject" -m "First paragraph" -m "Second paragraph"

git log --format=medium

The “medium” format is the default when passing no --format option:

git log
commit a0806341633cc7f3b4a93c4cd6ff395ba904f873
Author: Alice <alice@example.com>
Date:   Sat Jul 17 12:32:11 2021 +0200

    Subject
    
    First paragraph
    
    Second paragraph

git log --format=oneline

git log --format=oneline
a0806341633cc7f3b4a93c4cd6ff395ba904f873 Subject

git log --format=short

git log --format=short
commit a0806341633cc7f3b4a93c4cd6ff395ba904f873
Author: Alice <alice@example.com>

    Subject

git log --format=full

git log --format=full
commit a0806341633cc7f3b4a93c4cd6ff395ba904f873
Author: Alice <alice@example.com>
Commit: Bob <bob@example.com>

    Subject
    
    First paragraph
    
    Second paragraph

git log --format=fuller

git log --format=fuller
commit a0806341633cc7f3b4a93c4cd6ff395ba904f873
Author:     Alice <alice@example.com>
AuthorDate: Sat Jul 17 12:32:11 2021 +0200
Commit:     Bob <bob@example.com>
CommitDate: Sat Jul 17 13:12:37 2021 +0200

    Subject

    First paragraph

    Second paragraph

git log --format=email

git log --format=email
From a0806341633cc7f3b4a93c4cd6ff395ba904f873 Mon Sep 17 00:00:00 2001
From: Alice <alice@example.com>
Date: Sat, 17 Jul 2021 12:32:11 +0200
Subject: [PATCH] Subject

First paragraph

Second paragraph

git log --format=raw

git log --format=raw
commit a0806341633cc7f3b4a93c4cd6ff395ba904f873
tree bdd68b0120ca91384c1606468b4ca81b8f67c728
author Alice <alice@example.com> 1626517931 +0200
committer Bob <bob@example.com> 1626520357 +0200

    Subject

    First paragraph

    Second paragraph