Rearrange startup to make gitk reloadable for development and testing.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 25 Feb 2010 11:07:45 +0000 (11:07 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 25 Feb 2010 11:07:45 +0000 (11:07 +0000)
commit5b8b2aba52cd1aa06eb66bbc336a9ce97a61bbf6
tree44c33c760063d14ec16f4942238f4e9303c3c579
parent7963791e1f44f3053f47f98628cf1729030eab76
Rearrange startup to make gitk reloadable for development and testing.

This patch moves the startup code into procedures so that the script
can be re-sourced during interactive development. This also permits the
script to be loaded as a library to permit unit-testing of gitk functions.

In the global namespace where gitk lives, variable and global are equivalent
commands except that variable can assign a value when initializing the
global variable while global just declares a name in the global table.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
gitk