@@ -177,7 +177,7 @@ public void EndSearch()
177177 _cancellation . Cancel ( ) ;
178178
179179 _worktreeFiles = null ;
180- _users = null ;
180+ _authors = null ;
181181
182182 IsQuerying = false ;
183183 Suggestions = null ;
@@ -187,29 +187,28 @@ public void EndSearch()
187187
188188 private void UpdateSuggestions ( )
189189 {
190- if ( _method == ( int ) Models . CommitSearchMethod . ByAuthor ||
191- _method == ( int ) Models . CommitSearchMethod . ByCommitter )
190+ if ( _method == ( int ) Models . CommitSearchMethod . ByAuthor )
192191 {
193- if ( _users == null )
192+ if ( _authors == null )
194193 {
195- if ( _requestingUsers )
194+ if ( _requestingAuthors )
196195 return ;
197196
198- _requestingUsers = true ;
197+ _requestingAuthors = true ;
199198
200199 Task . Run ( async ( ) =>
201200 {
202- var users = await new Commands . QueryUsers ( _repo . FullPath )
201+ var authors = await new Commands . QueryAuthors ( _repo . FullPath )
203202 . GetResultAsync ( )
204203 . ConfigureAwait ( false ) ;
205204
206205 Dispatcher . UIThread . Post ( ( ) =>
207206 {
208- _requestingUsers = false ;
207+ _requestingAuthors = false ;
209208
210209 if ( _repo . IsSearchingCommits )
211210 {
212- _users = users ;
211+ _authors = authors ;
213212 UpdateSuggestions ( ) ;
214213 }
215214 } ) ;
@@ -218,18 +217,18 @@ private void UpdateSuggestions()
218217 return ;
219218 }
220219
221- if ( _users . Count == 0 || _filter . Length < 2 )
220+ if ( _authors . Count == 0 || _filter . Length < 2 )
222221 {
223222 Suggestions = null ;
224223 return ;
225224 }
226225
227226 var matched = new List < object > ( ) ;
228- foreach ( var user in _users )
227+ foreach ( var author in _authors )
229228 {
230- if ( user . Name . Contains ( _filter , StringComparison . OrdinalIgnoreCase ) ||
231- user . Email . Contains ( _filter , StringComparison . OrdinalIgnoreCase ) )
232- matched . Add ( user ) ;
229+ if ( author . Name . Contains ( _filter , StringComparison . OrdinalIgnoreCase ) ||
230+ author . Email . Contains ( _filter , StringComparison . OrdinalIgnoreCase ) )
231+ matched . Add ( author ) ;
233232 }
234233
235234 Suggestions = matched ;
@@ -296,8 +295,8 @@ private void UpdateSuggestions()
296295 private Models . Commit _selected = null ;
297296 private bool _requestingWorktreeFiles = false ;
298297 private List < string > _worktreeFiles = null ;
299- private bool _requestingUsers = false ;
300- private List < Models . User > _users = null ;
298+ private bool _requestingAuthors = false ;
299+ private List < Models . User > _authors = null ;
301300 private List < object > _suggestions = null ;
302301 }
303302}
0 commit comments