summaryrefslogtreecommitdiff
path: root/git/index/fun.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-06-18 11:28:33 +0800
committerGitHub <noreply@github.com>2021-06-18 11:28:33 +0800
commit6a0d131ece696f259e7ab42a064ceb10dabb1fcc (patch)
treefb07007006ec6af0dccbcd6a62abc4c6589dcfd3 /git/index/fun.py
parentb0f79c58ad919e90261d1e332df79a4ad0bc40de (diff)
parent18b6aa55309adfa8aa99bdaf9e8f80337befe74e (diff)
downloadgitpython-6a0d131ece696f259e7ab42a064ceb10dabb1fcc.tar.gz
Merge pull request #1271 from Yobmod/main
Add initial types to object, and fix CI
Diffstat (limited to 'git/index/fun.py')
-rw-r--r--git/index/fun.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/fun.py b/git/index/fun.py
index 1012f480..3fded347 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -109,7 +109,7 @@ def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None:
# end handle return code
-def stat_mode_to_index_mode(mode):
+def stat_mode_to_index_mode(mode: int) -> int:
"""Convert the given mode from a stat call to the corresponding index mode
and return it"""
if S_ISLNK(mode): # symlinks