@@ -579,7 +579,7 @@ def _process_diff_args(self, # type: ignore[override]
579579 def _to_relative_path (self , path : PathLike ) -> PathLike :
580580 """
581581 :return: Version of path relative to our git directory or raise ValueError
582- if it is not within our git direcotory """
582+ if it is not within our git directory """
583583 if not osp .isabs (path ):
584584 return path
585585 if self .repo .bare :
@@ -682,7 +682,7 @@ def add(self, items: Sequence[Union[PathLike, Blob, BaseIndexEntry, 'Submodule']
682682 into the object database.
683683
684684 PathStrings may contain globs, such as 'lib/__init__*' or can be directories
685- like 'lib', the latter ones will add all the files within the dirctory and
685+ like 'lib', the latter ones will add all the files within the directory and
686686 subdirectories.
687687
688688 This equals a straight git-add.
@@ -779,7 +779,7 @@ def add(self, items: Sequence[Union[PathLike, Blob, BaseIndexEntry, 'Submodule']
779779 "At least one Entry has a null-mode - please use index.remove to remove files for clarity" )
780780 # END null mode should be remove
781781
782- # HANLDE ENTRY OBJECT CREATION
782+ # HANDLE ENTRY OBJECT CREATION
783783 # create objects if required, otherwise go with the existing shas
784784 null_entries_indices = [i for i , e in enumerate (entries ) if e .binsha == Object .NULL_BIN_SHA ]
785785 if null_entries_indices :
@@ -813,7 +813,7 @@ def handle_null_entries(self: 'IndexFile') -> None:
813813 fprogress (entry .path , False , entry )
814814 fprogress (entry .path , True , entry )
815815 # END handle progress
816- # END for each enty
816+ # END for each entry
817817 entries_added .extend (entries )
818818 # END if there are base entries
819819
0 commit comments