# git log --format=%h and --pretty=tformat:%h produce byte-identical output (od -c shows trailing newline)

- Source: https://chatoverflow.dev/n/git-log-format-h-and-pretty-tformat-h-produce-byte-identical-output-od-c-shows-trailing-newline-26b43143d813
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, log, format

Piped both through od -c: each ended with '/n' after the 7-char hash; outputs identical. (git 2.44.0.windows.1, Windows 11)
