From e27a0fa3699c8cb61819a70bce5161620dd84ad4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 15 Oct 2025 00:31:59 -0500 Subject: helpful list from Gemini. lame weird chars --- doGit.go | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/doGit.go b/doGit.go index 5ace8f6..6128c11 100644 --- a/doGit.go +++ b/doGit.go @@ -169,3 +169,64 @@ func doPush(wpath string) { repo.RunRealtime([]string{"git", "push"}) } + +/* + ┌─────────────┬───────────────────────────┬──────────────────────────────────────────┐ + │ Placeholder │ Description │ Example Output │ + ├─────────────┼───────────────────────────┼──────────────────────────────────────────┤ + │ %H │ Full commit hash │ a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2 │ + │ %h │ Abbreviated commit hash │ a1b2c3d │ + │ %T │ Full tree hash │ f1e2d3c4b5a6f1e2d3c4b5a6f1e2d3c4b5a6f1e2 │ + │ %t │ Abbreviated tree hash │ f1e2d3c │ + │ %P │ Full parent hashes │ a1b2... f1e2... (space-separated) │ + │ %p │ Abbreviated parent hashes │ a1b2c3d f1e2d3c │ + └─────────────┴───────────────────────────┴──────────────────────────────────────────┘ + + + Author and Committer Information + + (Note: "Author" is who originally wrote the code. "Committer" is who last applied it to the branch. They are often the + same.) + + + ┌─────────────┬───────────────────────────────────┬────────────────────────────────┐ + │ Placeholder │ Description │ Example Output │ + ├─────────────┼───────────────────────────────────┼────────────────────────────────┤ + │ %an │ Author name │ Jane Doe │ + │ %ae │ Author email │ jane.doe@example.com │ + │ %aN │ Author name (respecting .mailmap) │ Jane Doe │ + │ %ad │ Author date │ Tue Oct 14 10:30:00 2025 -0700 │ + │ %ar │ Author date, relative │ 3 days ago │ + │ %at │ Author date, UNIX timestamp │ 1760453400 │ + │ %cn │ Committer name │ John Smith │ + │ %ce │ Committer email │ john.smith@example.com │ + │ %cd │ Committer date │ Wed Oct 15 11:00:00 2025 -0700 │ + │ %cr │ Committer date, relative │ 2 days ago │ + │ %ct │ Committer date, UNIX timestamp │ 1760541600 │ + └─────────────┴───────────────────────────────────┴────────────────────────────────┘ + + Commit Message + + + ┌─────────────┬──────────────────────────────────────────────────────────┐ + │ Placeholder │ Description │ + ├─────────────┼──────────────────────────────────────────────────────────┤ + │ %s │ Subject (first line of the commit message) │ + │ %f │ "Sanitized" subject line, suitable for a filename │ + │ %b │ Body (the rest of the commit message, after the subject) │ + │ %B │ Raw full commit message (subject + body) │ + │ %N │ Commit notes (from git notes) │ + └─────────────┴──────────────────────────────────────────────────────────┘ + + Ref Names (Branches and Tags) + + + ┌────────────┬─────────────────────────────────────────────────────────────┬──────────────────────────────────────┐ + │ Placeho... │ Description │ Example Output │ + ├────────────┼─────────────────────────────────────────────────────────────┼──────────────────────────────────────┤ + │ %d │ All ref names pointing to this commit │ `(HEAD -> main, tag: v1.0, origin... │ + │ %D │ Like %d, but without the parentheses/commas │ HEAD -> main, tag: v1.0, origin/main │ + │ %S │ The ref name given on the command line (e.g., the branch... │ main │ + └────────────┴─────────────────────────────────────────────────────────────┴──────────────────────────────────────┘ + +*/ -- cgit v1.2.3