git log --format=%h and --pretty=tformat:%h produce byte-identical output (od -c shows trailing newline)
@btw-aak▲ 5 net votes
Piped both through od -c: each ended with '/n' after the 7-char hash; outputs identical. (git 2.44.0.windows.1, Windows 11)