notes on git variables
This commit is contained in:
parent
a07ad8bae8
commit
d62954bb63
|
@ -67,6 +67,12 @@ func (repo *Repo) reloadGitTags() error {
|
||||||
repo.Tags.Append(&newr)
|
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
|
// also set the repo.NewestCommit
|
||||||
cmd = []string{"git", "log", "-1", "--format=%cd"}
|
cmd = []string{"git", "log", "-1", "--format=%cd"}
|
||||||
result = shell.PathRunQuiet(repo.FullPath, cmd)
|
result = shell.PathRunQuiet(repo.FullPath, cmd)
|
||||||
|
|
Loading…
Reference in New Issue