summaryrefslogtreecommitdiff
path: root/git/objects
diff options
context:
space:
mode:
authorluz paz <luzpaz@pm.me>2022-05-07 15:59:10 -0400
committerluz paz <luzpaz@pm.me>2022-05-07 15:59:10 -0400
commitdde3a8bd9229ff25ec8bc03c35d937f43233f48e (patch)
treee4db57c467db566901d53881012f1ccfe3ca9d4a /git/objects
parentb3166ece31bfb29e89f6ed4bb9214bf1c03791df (diff)
downloadgitpython-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/objects')
-rw-r--r--git/objects/base.py2
-rw-r--r--git/objects/commit.py4
-rw-r--r--git/objects/submodule/root.py2
-rw-r--r--git/objects/util.py4
4 files changed, 6 insertions, 6 deletions
diff --git a/git/objects/base.py b/git/objects/base.py
index a3b0f230..66e15a8f 100644
--- a/git/objects/base.py
+++ b/git/objects/base.py
@@ -32,7 +32,7 @@ IndexObjUnion = Union['Tree', 'Blob', 'Submodule']
# --------------------------------------------------------------------------
-_assertion_msg_format = "Created object %r whose python type %r disagrees with the acutual git object type %r"
+_assertion_msg_format = "Created object %r whose python type %r disagrees with the actual git object type %r"
__all__ = ("Object", "IndexObject")
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 07355e7e..96a2a8e5 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -322,7 +322,7 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable):
Git messages can contain trailer information that are similar to RFC 822
e-mail headers (see: https://git-scm.com/docs/git-interpret-trailers).
- This funcions calls ``git interpret-trailers --parse`` onto the message
+ This functions calls ``git interpret-trailers --parse`` onto the message
to extract the trailer information. The key value pairs are stripped of
leading and trailing whitespaces before they get saved into a dictionary.
@@ -461,7 +461,7 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable):
# * Environment variables override configuration values
# * Sensible defaults are set according to the git documentation
- # COMMITER AND AUTHOR INFO
+ # COMMITTER AND AUTHOR INFO
cr = repo.config_reader()
env = os.environ
diff --git a/git/objects/submodule/root.py b/git/objects/submodule/root.py
index 5e84d161..08e1f954 100644
--- a/git/objects/submodule/root.py
+++ b/git/objects/submodule/root.py
@@ -338,7 +338,7 @@ class RootModule(Submodule):
sm.update(recursive=False, init=init, to_latest_revision=to_latest_revision,
progress=progress, dry_run=dry_run, force=force_reset, keep_going=keep_going)
- # update recursively depth first - question is which inconsitent
+ # update recursively depth first - question is which inconsistent
# state will be better in case it fails somewhere. Defective branch
# or defective depth. The RootSubmodule type will never process itself,
# which was done in the previous expression
diff --git a/git/objects/util.py b/git/objects/util.py
index 187318fe..800eccdf 100644
--- a/git/objects/util.py
+++ b/git/objects/util.py
@@ -37,7 +37,7 @@ if TYPE_CHECKING:
from .submodule.base import Submodule
from git.types import Protocol, runtime_checkable
else:
- # Protocol = Generic[_T] # NNeeded for typing bug #572?
+ # Protocol = Generic[_T] # Needed for typing bug #572?
Protocol = ABC
def runtime_checkable(f):
@@ -359,7 +359,7 @@ class Traversable(Protocol):
out: IterableList[Union['Commit', 'Submodule', 'Tree', 'Blob']] = IterableList(id)
out.extend(self.traverse(as_edge=as_edge, *args, **kwargs))
return out
- # overloads in subclasses (mypy does't allow typing self: subclass)
+ # overloads in subclasses (mypy doesn't allow typing self: subclass)
# Union[IterableList['Commit'], IterableList['Submodule'], IterableList[Union['Submodule', 'Tree', 'Blob']]]
else:
# Raise deprecationwarning, doesn't make sense to use this