notes on git variables

This commit is contained in:
Jeff Carr 2025-01-30 18:00:41 -06:00
parent a07ad8bae8
commit d62954bb63
1 changed files with 6 additions and 0 deletions

View File

@ -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)