From d62954bb63a10b7dc3b20d629bae20353d6987ee Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Jan 2025 18:00:41 -0600 Subject: [PATCH] notes on git variables --- reloadTags.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reloadTags.go b/reloadTags.go index 3b574ac..444dc86 100644 --- a/reloadTags.go +++ b/reloadTags.go @@ -67,6 +67,12 @@ func (repo *Repo) reloadGitTags() error { repo.Tags.Append(&newr) } + // GIT_COMMITTER_DATE="$(git log -1 --format=%cI)" \ + // GIT_AUTHOR_DATE="$(git log -1 --format=%aI)" \ + // git am --committer-date-is-author-date < patch.mbox + + // good format for insuring the hashs are identical when using git am + // git log -1 --format="%H %aI %cI %an %ae %cn %ce" // also set the repo.NewestCommit cmd = []string{"git", "log", "-1", "--format=%cd"} result = shell.PathRunQuiet(repo.FullPath, cmd)