git-gui: avoid persisting modified author identity
commitcfe616bcb14a4574235d301f5e6b12efeda9768d
authorPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 6 Oct 2016 13:04:42 +0000 (6 14:04 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 6 Oct 2016 21:18:47 +0000 (6 22:18 +0100)
treed95f4c01d2df0e24afe98904f10d5baf779e7946
parent7e71adc77fb08021235006e88f255e5e40d25662
git-gui: avoid persisting modified author identity

Commit 7e71adc77f fixes a problem with git-gui failing to pick up the
original author identity during a commit --amend operation. However, the
new author details then become persistent for the remainder of the session.
This commit fixes this by ensuring the environment variables are reset
and the author information reset once the commit is completed.
The relevant changes were reworked to reduce global variables.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/commit.tcl