diff options
author | luz paz <luzpaz@pm.me> | 2022-05-07 15:59:10 -0400 |
---|---|---|
committer | luz paz <luzpaz@pm.me> | 2022-05-07 15:59:10 -0400 |
commit | dde3a8bd9229ff25ec8bc03c35d937f43233f48e (patch) | |
tree | e4db57c467db566901d53881012f1ccfe3ca9d4a /git/index/base.py | |
parent | b3166ece31bfb29e89f6ed4bb9214bf1c03791df (diff) | |
download | gitpython-dde3a8bd9229ff25ec8bc03c35d937f43233f48e.tar.gz |
Fix various typos
Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`
Diffstat (limited to 'git/index/base.py')
-rw-r--r-- | git/index/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git/index/base.py b/git/index/base.py index 209bfa8d..00e51bf5 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -579,7 +579,7 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable): def _to_relative_path(self, path: PathLike) -> PathLike: """ :return: Version of path relative to our git directory or raise ValueError - if it is not within our git direcotory""" + if it is not within our git directory""" if not osp.isabs(path): return path if self.repo.bare: @@ -682,7 +682,7 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable): into the object database. PathStrings may contain globs, such as 'lib/__init__*' or can be directories - like 'lib', the latter ones will add all the files within the dirctory and + like 'lib', the latter ones will add all the files within the directory and subdirectories. This equals a straight git-add. @@ -779,7 +779,7 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable): "At least one Entry has a null-mode - please use index.remove to remove files for clarity") # END null mode should be remove - # HANLDE ENTRY OBJECT CREATION + # HANDLE ENTRY OBJECT CREATION # create objects if required, otherwise go with the existing shas null_entries_indices = [i for i, e in enumerate(entries) if e.binsha == Object.NULL_BIN_SHA] if null_entries_indices: @@ -813,7 +813,7 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable): fprogress(entry.path, False, entry) fprogress(entry.path, True, entry) # END handle progress - # END for each enty + # END for each entry entries_added.extend(entries) # END if there are base entries |