Skip to content

Commit 7a1835c

Browse files
committed
Use graph_show_more_commit_info as config option.
1 parent 59a0075 commit 7a1835c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

GitSavvy.sublime-settings

+4-2
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@
121121
"prompt_for_tracking_branch": true,
122122

123123
/*
124-
When set to `true`, GitSavvy will display more info about current commit in a quick panel, when you are in git graph view.
124+
When set to `true`, GitSavvy will automatically display more info about the
125+
current commit in a quick panel. When set to `false`, this function must
126+
be invoked manually.
125127
*/
126-
"log_graph_view_toggle_more": true,
128+
"graph_show_more_commit_info": true,
127129

128130
/*
129131
Update the desired graph arguments for a customized experience.

core/commands/log_graph.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ def run(self, edit, forward=True):
124124
class GsLogGraphToggleMoreInfoCommand(TextCommand, WindowCommand, GitCommand):
125125

126126
"""
127-
Toggle log_graph_view_toggle_more setting.
127+
Toggle `graph_show_more_commit_info` setting.
128128
"""
129129

130130
def run(self, edit):
131131
savvy_settings = sublime.load_settings("GitSavvy.sublime-settings")
132-
toggle_more = savvy_settings.get("log_graph_view_toggle_more")
133-
savvy_settings.set("log_graph_view_toggle_more", not toggle_more)
132+
show_more = savvy_settings.get("graph_show_more_commit_info")
133+
savvy_settings.set("graph_show_more_commit_info", not show_more)
134134

135135
self.view.run_command("gs_log_graph_more_info")

0 commit comments

Comments
 (0)