author | Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> | |
Tue, 5 Apr 2011 02:14:17 +0000 (22:14 -0400) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 24 Jul 2011 05:34:54 +0000 (15:34 +1000) | ||
commit | da616db5e56a735ab3028c33b19af5136420dcb9 | |
tree | 0a4e0043acd946a64729e7d4b1eb364ce519bee7 | tree | snapshot |
parent | 929f577e0a648dd1c90b92d8a3f6f1899f2fa0e2 | commit | diff |
gitk: Run 'git rev-parse --git-dir' only once
It seems like gitk has been setting the global variable 'gitdir' at
startup since aa81d97 (gitk: Fix Update menu item, 2006-02-28). It
should therefore no longer be necessary to call the procedure with the
same name (more than once to set the global variable). Remove the
other call sites and use the global variable instead.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
It seems like gitk has been setting the global variable 'gitdir' at
startup since aa81d97 (gitk: Fix Update menu item, 2006-02-28). It
should therefore no longer be necessary to call the procedure with the
same name (more than once to set the global variable). Remove the
other call sites and use the global variable instead.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |