summaryrefslogtreecommitdiff
path: root/AUTHORS
diff options
context:
space:
mode:
authorJoseph Hale <me@jhale.dev>2022-08-29 23:45:51 -0700
committerJoseph Hale <me@jhale.dev>2022-08-30 22:04:34 -0700
commit18a79d8028f934f8f78da33de3b0523fc7d1df47 (patch)
tree087efdcdb3fc02be8a4bdd77e5dc6880c3170e6a /AUTHORS
parent73bde1f27711e48bd887b5a13cd5e3a0a8d9d723 (diff)
downloadgitpython-18a79d8028f934f8f78da33de3b0523fc7d1df47.tar.gz
feat(blame): Support custom `rev_opts` for blame
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`.
Diffstat (limited to 'AUTHORS')
-rw-r--r--AUTHORS1
1 files changed, 1 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 97e14789..8f3f2ccf 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -49,4 +49,5 @@ Contributors are:
-Julien Mauroy <pro.julien.mauroy _at_ gmail.com>
-Patrick Gerard
-Luke Twist <itsluketwist@gmail.com>
+-Joseph Hale <me _at_ jhale.dev>
Portions derived from other open source works and are clearly marked.