@matheusbsbs / matheus-bagliano / commits / db45378165
Fork 0

git-gui: Allow users to edit user.name, user.email from options.

Users may need to be able to alter their user.name or user.email configuration settings. If they are mostly a git-gui user they should be able to view/set these important values from within the git-gui environment, rather than needing to edit a raw text file on their local filesystem. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jan 29, 2007 at 02:56 UTC db45378165f499dcc4412b4f4b0f4ec5cbc65914
1 file changed +6
git-gui.sh
+6
@@ -4270,6 +4270,9 @@ proc do_options {} {
4270
4271 set optid 0
4272 foreach option {
4273 + {t user.name {User Name}}
4274 + {t user.email {Email Address}}
4275 +
4276 {b merge.summary {Summarize Merge Commits}}
4277 {i-1..5 merge.verbosity {Merge Verbosity}}
4278
@@ -4676,6 +4679,9 @@ proc apply_config {} {
4679
4680 set default_config(merge.summary) false
4681 set default_config(merge.verbosity) 2
4682 +set default_config(user.name) {}
4683 +set default_config(user.email) {}
4684 +
4685 set default_config(gui.trustmtime) false
4686 set default_config(gui.diffcontext) 5
4687 set default_config(gui.newbranchtemplate) {}