@@ -126,7 +126,7 @@ def _create_actions(self):
126126 shortcut = 'Ctrl+3' ,
127127 checkable = True ,
128128 )
129-
129+
130130 self ._action_group = QtWidgets .QActionGroup (self )
131131 self ._action_group .triggered .connect (self ._update_working_tree_diff )
132132 for action in (self ._all_change_mode_action ,
@@ -136,13 +136,23 @@ def _create_actions(self):
136136 self ._action_group .addAction (action )
137137 self ._all_change_mode_action .setChecked (True )
138138
139+ self ._reload_action = \
140+ QtWidgets .QAction ('Reload' ,
141+ self ,
142+ toolTip = 'Reload' ,
143+ shortcut = 'Ctrl+4'
144+ )
145+ self ._reload_action .triggered .connect (self ._reload_repository )
146+
139147 ##############################################
140148
141149 def _create_toolbar (self ):
142150
143151 self ._tool_bar = self .addToolBar ('Diff on Working Tree' )
144152 for item in self ._action_group .actions ():
145153 self ._tool_bar .addAction (item )
154+ for item in (self ._reload_action ,):
155+ self ._tool_bar .addAction (item )
146156
147157 ##############################################
148158
@@ -174,6 +184,13 @@ def show_message(self, message=None, timeout=0, warn=False):
174184
175185 ##############################################
176186
187+ def _reload_repository (self ):
188+
189+ self ._application .reload_repository ()
190+ self ._update_working_tree_diff ()
191+
192+ ##############################################
193+
177194 def _update_working_tree_diff (self ):
178195
179196 if self ._log_table .currentIndex ().row () == 0 :
0 commit comments