diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-21 00:33:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 00:33:43 +0200 |
commit | afcd64ebbb770908bd2a751279ff070dea5bb97c (patch) | |
tree | 0674f49f45996d533890e0f67498a6038c590168 /git/index | |
parent | aab7dc2c7771118064334ee475dff8a6bb176b57 (diff) | |
parent | 66c41eb3b2b4130c7b68802dd2078534d1f6bf7a (diff) | |
download | gitpython-afcd64ebbb770908bd2a751279ff070dea5bb97c.tar.gz |
Merge pull request #539 from bryant1410/typos
Fix some typos
Diffstat (limited to 'git/index')
-rw-r--r-- | git/index/base.py | 12 | ||||
-rw-r--r-- | git/index/fun.py | 2 | ||||
-rw-r--r-- | git/index/util.py | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/git/index/base.py b/git/index/base.py index ac2d3019..c93a999b 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -144,7 +144,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): self._deserialize(stream) finally: lfd.rollback() - # The handles will be closed on desctruction + # The handles will be closed on destruction # END read from default index on demand else: super(IndexFile, self)._set_cache_(attr) @@ -880,7 +880,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): def move(self, items, skip_errors=False, **kwargs): """Rename/move the items, whereas the last item is considered the destination of the move operation. If the destination is a file, the first item ( of two ) - must be a file as well. If the destination is a directory, it may be preceeded + must be a file as well. If the destination is a directory, it may be preceded by one or more directories or files. The working tree will be affected in non-bare repositories. @@ -890,7 +890,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): for reference. :param skip_errors: If True, errors such as ones resulting from missing source files will - be skpped. + be skipped. :param kwargs: Additional arguments you would like to pass to git-mv, such as dry_run or force. @@ -899,7 +899,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): A list of pairs, containing the source file moved as well as its actual destination. Relative to the repository root. - :raise ValueErorr: If only one item was given + :raise ValueError: If only one item was given GitCommandError: If git could not handle your request""" args = list() if skip_errors: @@ -995,7 +995,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): prior and after a file has been checked out :param kwargs: - Additional arguments to be pasesd to git-checkout-index + Additional arguments to be passed to git-checkout-index :return: iterable yielding paths to files which have been checked out and are @@ -1223,7 +1223,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): cur_val = kwargs.get('R', False) kwargs['R'] = not cur_val return other.diff(self.Index, paths, create_patch, **kwargs) - # END diff against other item handlin + # END diff against other item handling # if other is not None here, something is wrong if other is not None: diff --git a/git/index/fun.py b/git/index/fun.py index 7a7593fe..ddb04138 100644 --- a/git/index/fun.py +++ b/git/index/fun.py @@ -355,7 +355,7 @@ def aggressive_tree_merge(odb, tree_shas): out_append(_tree_entry_to_baseindexentry(theirs, 3)) # END theirs changed # else: - # theirs didnt change + # theirs didn't change # pass # END handle theirs # END handle ours diff --git a/git/index/util.py b/git/index/util.py index ce798851..5d72a9cc 100644 --- a/git/index/util.py +++ b/git/index/util.py @@ -72,7 +72,7 @@ def default_index(func): raise AssertionError( "Cannot call %r on indices that do not represent the default git index" % func.__name__) return func(self, *args, **kwargs) - # END wrpaper method + # END wrapper method return check_default_index |