-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templater: extract Commit methods to HashMap
There are two major goals: * provide typo hints in a similar way to revset * make methods extensible The created method table is bound to the 'repo lifetime because of the problem described in the inline comment. It would be nice if we can build cachable core method table for<'repo> CommitTemplateLanguage<'repo, '_>, but I couldn't figure out how.
- Loading branch information
Showing
1 changed file
with
196 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters