summaryrefslogtreecommitdiff
path: root/git/diff.py
diff options
context:
space:
mode:
authorSantiago Castro <santi.1410@hotmail.com>2016-10-20 19:20:32 -0300
committerSantiago Castro <santi.1410@hotmail.com>2016-10-20 19:20:32 -0300
commit66c41eb3b2b4130c7b68802dd2078534d1f6bf7a (patch)
tree0674f49f45996d533890e0f67498a6038c590168 /git/diff.py
parentaab7dc2c7771118064334ee475dff8a6bb176b57 (diff)
downloadgitpython-66c41eb3b2b4130c7b68802dd2078534d1f6bf7a.tar.gz
Fix some typos
Diffstat (limited to 'git/diff.py')
-rw-r--r--git/diff.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/git/diff.py b/git/diff.py
index 35c7ff86..96e246a2 100644
--- a/git/diff.py
+++ b/git/diff.py
@@ -91,11 +91,11 @@ class Diffable(object):
:param paths:
is a list of paths or a single path to limit the diff to.
- It will only include at least one of the givne path or paths.
+ It will only include at least one of the given path or paths.
:param create_patch:
If True, the returned Diff contains a detailed patch that if applied
- makes the self to other. Patches are somwhat costly as blobs have to be read
+ makes the self to other. Patches are somewhat costly as blobs have to be read
and diffed.
:param kwargs:
@@ -106,7 +106,7 @@ class Diffable(object):
:note:
On a bare repository, 'other' needs to be provided as Index or as
- as Tree/Commit, or a git command error will occour"""
+ as Tree/Commit, or a git command error will occur"""
args = list()
args.append("--abbrev=40") # we need full shas
args.append("--full-index") # get full index paths, not only filenames
@@ -172,7 +172,7 @@ class DiffIndex(list):
def iter_change_type(self, change_type):
"""
:return:
- iterator yieling Diff instances that match the given change_type
+ iterator yielding Diff instances that match the given change_type
:param change_type:
Member of DiffIndex.change_type, namely:
@@ -347,7 +347,7 @@ class Diff(object):
msg += '\n---'
# END diff info
- # Python2 sillyness: have to assure we convert our likely to be unicode object to a string with the
+ # Python2 silliness: have to assure we convert our likely to be unicode object to a string with the
# right encoding. Otherwise it tries to convert it using ascii, which may fail ungracefully
res = h + msg
if not PY3:
@@ -427,7 +427,7 @@ class Diff(object):
b_path = cls._pick_best_path(b_path, rename_to, b_path_fallback)
# Our only means to find the actual text is to see what has not been matched by our regex,
- # and then retro-actively assin it to our index
+ # and then retro-actively assign it to our index
if previous_header is not None:
index[-1].diff = text[previous_header.end():header.start()]
# end assign actual diff
@@ -480,7 +480,7 @@ class Diff(object):
rename_from = None
rename_to = None
- # NOTE: We cannot conclude from the existance of a blob to change type
+ # NOTE: We cannot conclude from the existence of a blob to change type
# as diffs with the working do not have blobs yet
if change_type == 'D':
b_blob_id = None