-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templater: expose RefTarget methods through RefName type
I considered adding RefTarget template type, but some of the methods naturally fit to RefName. For example, a conflicted branch name is decorated as "??", so it makes sense to add branch.conflict() instead of branch.target().conflict(). I'm not pretty sure how many RefName methods we'll need to add to port the current branch listing, but there will be .tracked(), .tracking_local_present(), .ahead_by(), and .behind_by().
- Loading branch information
Showing
3 changed files
with
115 additions
and
16 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
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
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