May 9, 2024
9:51 p.m.
On Mai 09 2024, Steffen Nurpmeso via tz wrote:
git show --no-patch [--pretty=XY] COMMIT
gives the commit object (to the given extend), which can then be parsed and used for example to fill in the environment variables
GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE
for "git commit" accordingly. There you go.
git commit -c <commit> can do that for you, if you fetch the commit into the current repository. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."