]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: Don't load the global options unless necessary.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 12 Nov 2006 21:24:52 +0000 (16:24 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 13 Nov 2006 05:10:38 +0000 (00:10 -0500)
commit6bbd1cb95aede2991d0748d2a54088f2c1291602
treec147a791fa46e92eb8e602ac98e3ea9f451926ca
parent4ccdab028263dfdeb0adf9764466bb3a43265395
git-gui: Don't load the global options unless necessary.

Since git-repo-config will supply us a union of both the global and
the local repository configuration data when we invoke it during startup
there is no reason to go get the global configuration with an extra call
to repo-config unless the user is trying to view & edit all options in
the options dialog.

Since skipping this extra repo-config invocation save us a little bit of
time its nice to be able to avoid it when we are invoked as git-citool
and won't be running very long.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui