summaryrefslogtreecommitdiff
path: root/doGit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 00:31:59 -0500
committerJeff Carr <[email protected]>2025-10-15 00:31:59 -0500
commite27a0fa3699c8cb61819a70bce5161620dd84ad4 (patch)
tree89e77efce94fdb38ad5494545e43b46fc331c903 /doGit.go
parent551ffdde477cc1e664ac8026085d3833f476b73e (diff)
helpful list from Gemini. lame weird charsv0.1.39
Diffstat (limited to 'doGit.go')
-rw-r--r--doGit.go61
1 files changed, 61 insertions, 0 deletions
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 │ [email protected]
+ │ %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 │ [email protected]
+ │ %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 │
+ └────────────┴─────────────────────────────────────────────────────────────┴──────────────────────────────────────┘
+
+*/