Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Git Blame style option. #2851

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

userwiths
Copy link

Related Issues

#2810 #1536

Quick Summary

  • Added a new decorator.
  • Added required changes in config in order to recognize 2 new CLI options/arguments.
  • Added a simple format ability with the placeholders from git's pretty-formats
  • Updated doc tests to take into consideration new options.

Visual Example

bat ./README.md --style=full,blame --blame-format="%h %cn"
image

* Added a new decorator.
* Added required changes in `config` in order to recognize 2 new CLI options/arguments.
* Added a simple format ability with the placeholders from [git's pretty-formats](https://git-scm.com/docs/pretty-formats)
* Updated doc tests to take into consideration new options.
when building without git `Decoration, GridBorderDecoration, LineNumberDecoration` gave errors because they were marked as `git` features,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant