Skip to content

Commit 87b314e

Browse files
committed
Add INDEX and DiffConstants to git.__all__
This adds the names of git.diff.INDEX and git.diff.DiffConstants to the top-level __all__. In particular, the recently introduced INDEX constant has the same standing as NULL_TREE, which was (rightly) already listed, and this change makes true the claims in some docstrings in the git.diff module that say that INDEX is accessible (among other ways) as git.INDEX.
1 parent 3c8cbe9 commit 87b314e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"CommandError",
2121
"Commit",
2222
"Diff",
23+
"DiffConstants",
2324
"DiffIndex",
2425
"Diffable",
2526
"FetchInfo",
@@ -33,6 +34,7 @@
3334
"HEAD",
3435
"Head",
3536
"HookExecutionError",
37+
"INDEX",
3638
"IndexEntry",
3739
"IndexFile",
3840
"IndexObject",

0 commit comments

Comments
 (0)