Title: feat(blame): Support custom `rev_opts` for blame by thehale · Pull Request #1485 · gitpython-developers/GitPython · GitHub
Open Graph Title: feat(blame): Support custom `rev_opts` for blame by thehale · Pull Request #1485 · gitpython-developers/GitPython
X Title: feat(blame): Support custom `rev_opts` for blame by thehale · Pull Request #1485 · gitpython-developers/GitPython
Description: The git blame CLI offers a repeated -C option that can be used to detect lines that move within/between files. While a slower operation, it yields more accurate authorship reports. https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Cltnumgt While GitPython does enable passing custom kwargs to the command line git invocation, the fact that kwargs is a dictionary (i.e. no duplicate keys) means that there was no way to request the -C option in git blame more than once. This commit adds an optional rev_opts parameter to the blame method which accepts a list of strings to propagate to the CLI invocation of git blame. By using a List[str] for rev_opts, users of GitPython can pass now the -C option multiple times to get more detailed authorship reports from git blame.
Open Graph Description: The git blame CLI offers a repeated -C option that can be used to detect lines that move within/between files. While a slower operation, it yields more accurate authorship reports. https://git-scm....
X Description: The git blame CLI offers a repeated -C option that can be used to detect lines that move within/between files. While a slower operation, it yields more accurate authorship reports. https://git-scm....
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1485
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3aed24d6-cf35-ef0b-360a-3737b40569d6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 89A4:1A34B8:13251B0:19C58B2:6A595364 |
| html-safe-nonce | 20ed8274d6dc6ce0fdaa32705a276bc6221d64027c273d423ccdd02214f81bf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUE0OjFBMzRCODoxMzI1MUIwOjE5QzU4QjI6NkE1OTUzNjQiLCJ2aXNpdG9yX2lkIjoiNTEyMjI1MzQ5NTkyODk2ODAzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7302cc189ed74ec154b6af6edab6c6917e9ea25a2348c2df75f50a2c84b5995 |
| hovercard-subject-tag | pull_request:1040534051 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/1485/files |
| twitter:image | https://avatars.githubusercontent.com/u/47901316?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/47901316?s=400&v=4 |
| og:image:alt | The git blame CLI offers a repeated -C option that can be used to detect lines that move within/between files. While a slower operation, it yields more accurate authorship reports. https://git-scm.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5f35ad1fb16417d6e6774c537b62a2fe92222907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width