40
40
log = logging .getLogger (__name__ )
41
41
42
42
DefaultDBType = 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
44
44
DefaultDBType = GitCmdObjectDB
45
45
# END handle python 2.4
46
46
@@ -418,7 +418,7 @@ def config_writer(self, config_level="repository"):
418
418
419
419
:param config_level:
420
420
One of the following values
421
- system = sytem wide configuration file
421
+ system = system wide configuration file
422
422
global = user level configuration file
423
423
repository = configuration file for this repostory only"""
424
424
return GitConfigParser (self ._get_config_path (config_level ), read_only = False )
@@ -564,7 +564,7 @@ def _set_alternates(self, alts):
564
564
565
565
:raise NoSuchPathError:
566
566
: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
568
568
as the caller is responsible."""
569
569
alternates_path = osp .join (self .git_dir , 'objects' , 'info' , 'alternates' )
570
570
if not alts :
@@ -629,7 +629,7 @@ def untracked_files(self):
629
629
return self ._get_untracked_files ()
630
630
631
631
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
633
633
proc = self .git .status (* args ,
634
634
porcelain = True ,
635
635
untracked_files = True ,
@@ -681,7 +681,7 @@ def blame_incremental(self, rev, file, **kwargs):
681
681
682
682
stream = (line for line in data .split (b'\n ' ) if line )
683
683
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
685
685
hexsha , orig_lineno , lineno , num_lines = line .split ()
686
686
lineno = int (lineno )
687
687
num_lines = int (num_lines )
@@ -952,7 +952,7 @@ def archive(self, ostream, treeish=None, prefix=None, **kwargs):
952
952
* Use the 'format' argument to define the kind of format. Use
953
953
specialized ostreams to write any format supported by python.
954
954
* 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.
956
956
957
957
:raise GitCommandError: in case something went wrong
958
958
:return: self"""
@@ -972,7 +972,7 @@ def archive(self, ostream, treeish=None, prefix=None, **kwargs):
972
972
def has_separate_working_tree (self ):
973
973
"""
974
974
: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
976
976
:note: bare repositories will always return False here
977
977
"""
978
978
if self .bare :
0 commit comments