summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSagi Shadur <saroad2@gmail.com>2020-09-29 08:53:40 +0300
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-09-29 14:24:10 +0800
commite2067ba536dd78549d613dc14d8ad223c7d0aa5d (patch)
tree571c9cf79d101f142b17b8ec5540e00975ac3bf9
parentdf6fa49c0662104a5f563a3495c8170e2865e31b (diff)
downloadgitpython-e2067ba536dd78549d613dc14d8ad223c7d0aa5d.tar.gz
Rename get_ignored to ignored and fix the documentation
-rw-r--r--git/repo/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index ed976b2c..e0c4adb3 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -697,12 +697,12 @@ class Repo(object):
finalize_process(proc)
return untracked_files
- def get_ignored(self, *paths):
+ def ignored(self, *paths):
"""Checks if paths are ignored via .gitignore
Doing so using the "git check-ignore" method.
:param paths: List of paths to check whether they are ignored or not
- :return: sublist of ignored paths
+ :return: sublist of those paths which are ignored
"""
try:
proc = self.git.check_ignore(*paths)