4040log = logging .getLogger (__name__ )
4141
4242DefaultDBType = GitCmdObjectDB
43- if sys .version_info [:2 ] < (2 , 5 ): # python 2.4 compatiblity
43+ if sys .version_info [:2 ] < (2 , 5 ): # python 2.4 compatibility
4444 DefaultDBType = GitCmdObjectDB
4545# END handle python 2.4
4646
@@ -418,7 +418,7 @@ def config_writer(self, config_level="repository"):
418418
419419 :param config_level:
420420 One of the following values
421- system = sytem wide configuration file
421+ system = system wide configuration file
422422 global = user level configuration file
423423 repository = configuration file for this repostory only"""
424424 return GitConfigParser (self ._get_config_path (config_level ), read_only = False )
@@ -564,7 +564,7 @@ def _set_alternates(self, alts):
564564
565565 :raise NoSuchPathError:
566566 :note:
567- The method does not check for the existance of the paths in alts
567+ The method does not check for the existence of the paths in alts
568568 as the caller is responsible."""
569569 alternates_path = osp .join (self .git_dir , 'objects' , 'info' , 'alternates' )
570570 if not alts :
@@ -629,7 +629,7 @@ def untracked_files(self):
629629 return self ._get_untracked_files ()
630630
631631 def _get_untracked_files (self , * args , ** kwargs ):
632- # make sure we get all files, no only untracked directores
632+ # make sure we get all files, not only untracked directories
633633 proc = self .git .status (* args ,
634634 porcelain = True ,
635635 untracked_files = True ,
@@ -681,7 +681,7 @@ def blame_incremental(self, rev, file, **kwargs):
681681
682682 stream = (line for line in data .split (b'\n ' ) if line )
683683 while True :
684- line = next (stream ) # when exhausted, casues a StopIteration, terminating this function
684+ line = next (stream ) # when exhausted, causes a StopIteration, terminating this function
685685 hexsha , orig_lineno , lineno , num_lines = line .split ()
686686 lineno = int (lineno )
687687 num_lines = int (num_lines )
@@ -952,7 +952,7 @@ def archive(self, ostream, treeish=None, prefix=None, **kwargs):
952952 * Use the 'format' argument to define the kind of format. Use
953953 specialized ostreams to write any format supported by python.
954954 * You may specify the special **path** keyword, which may either be a repository-relative
955- path to a directory or file to place into the archive, or a list or tuple of multipe paths.
955+ path to a directory or file to place into the archive, or a list or tuple of multiple paths.
956956
957957 :raise GitCommandError: in case something went wrong
958958 :return: self"""
@@ -972,7 +972,7 @@ def archive(self, ostream, treeish=None, prefix=None, **kwargs):
972972 def has_separate_working_tree (self ):
973973 """
974974 :return: True if our git_dir is not at the root of our working_tree_dir, but a .git file with a
975- platform agnositic symbolic link. Our git_dir will be whereever the .git file points to
975+ platform agnositic symbolic link. Our git_dir will be wherever the .git file points to
976976 :note: bare repositories will always return False here
977977 """
978978 if self .bare :
0 commit comments