Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename get_ignored to ignored and fix the documentation
  • Loading branch information
saroad2 committed Sep 29, 2020
commit 61ba566841cd33a53bbd444136437d372947b47a
4 changes: 2 additions & 2 deletions git/repo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,12 +697,12 @@ def _get_untracked_files(self, *args, **kwargs):
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)
Expand Down