diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-22 12:47:45 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-22 12:47:45 +0200 |
commit | a25365fea0ea3b92ba96cc281facd308311def1e (patch) | |
tree | 5653a9923aebfc8b53407f8d1ef0d9d6497da081 /git/diff.py | |
parent | 76ac61a2b4bb10c8434a7d6fc798b115b4b7934d (diff) | |
parent | caa0ea7a0893fe90ea043843d4e6ad407126d7b8 (diff) | |
download | gitpython-a25365fea0ea3b92ba96cc281facd308311def1e.tar.gz |
Merge remote-tracking branch 'origin/master' into exp_git_dir
Diffstat (limited to 'git/diff.py')
-rw-r--r-- | git/diff.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/git/diff.py b/git/diff.py index 52dbf3a7..16c782f3 100644 --- a/git/diff.py +++ b/git/diff.py @@ -90,11 +90,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: @@ -105,7 +105,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 @@ -171,7 +171,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: @@ -346,7 +346,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: @@ -426,7 +426,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 @@ -479,7 +479,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 |