Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix some typos#539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ankostis merged 1 commit intogitpython-developers:masterfrombryant1410:typos
Oct 20, 2016
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -83,7 +83,7 @@ exists in `Git\mingw64\libexec\git-core\`; CYGWIN has no daemon, but should get
with MINGW's.

The easiest way to run tests is by using [tox](https://pypi.python.org/pypi/tox)
a wrapper around virtualenv. It will take care of setting upenvironnements with the proper
a wrapper around virtualenv. It will take care of setting upenvironments with the proper
dependencies installed and execute test commands. To install it simply:

pip install tox
Expand Down
28 changes: 14 additions & 14 deletionsdoc/source/changes.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -185,11 +185,11 @@ It follows the `semantic version scheme <http://semver.org>`_, and thus will not

0.3.3
=====
* When fetching, pulling or pushing, and an erroroccours, it will not be reported on stdout anymore. However, if there is a fatal error, it will still result in a GitCommandError to be thrown. This goes hand in hand with improved fetch result parsing.
* When fetching, pulling or pushing, and an erroroccurs, it will not be reported on stdout anymore. However, if there is a fatal error, it will still result in a GitCommandError to be thrown. This goes hand in hand with improved fetch result parsing.
* Code Cleanup (in preparation for python 3 support)

* Applied autopep8 and cleaned up code
* Using python logging module instead of printstatments to signal certain kinds of errors
* Using python logging module instead of printstatements to signal certain kinds of errors

0.3.2.1
=======
Expand DownExpand Up@@ -268,7 +268,7 @@ It follows the `semantic version scheme <http://semver.org>`_, and thus will not
* Head Type changes

* config_reader() & config_writer() methods added for access to head specific options.
* tracking_branch() & set_tracking_branch() methodsaddded for easy configuration of tracking branches.
* tracking_branch() & set_tracking_branch() methodsadded for easy configuration of tracking branches.


0.3.0 Beta 2
Expand DownExpand Up@@ -300,13 +300,13 @@ General
0.2 Beta 2
===========
* Commit objects now carry the 'encoding' information of their message. It wasn't parsed previously, and defaults to UTF-8
* Commit.create_from_tree now uses a pure-python implementation,mimicing git-commit-tree
* Commit.create_from_tree now uses a pure-python implementation,mimicking git-commit-tree

0.2
=====
General
-------
* file mode in Tree, Blob and Diff objects now is an int compatible todefinintiions
* file mode in Tree, Blob and Diff objects now is an int compatible todefinitions
in the stat module, allowing you to query whether individual user, group and other
read, write and execute bits are set.
* Adjusted class hierarchy to generally allow comparison and hash for Objects and Refs
Expand All@@ -320,12 +320,12 @@ General
may change without prior notice.
* Renamed all find_all methods to list_items - this method is part of the Iterable interface
that also provides a more efficients and more responsive iter_items method
* All dates, like authored_date and committer_date, are stored as seconds sinceepoc
* All dates, like authored_date and committer_date, are stored as seconds sinceepoch
to consume less memory - they can be converted using time.gmtime in a more suitable
presentation format if needed.
* Named method parameters changed on a wide scale to unify their use. Now git specific
terms are used everywhere, such as "Reference" ( ref ) and "Revision" ( rev ).
Prevously multiple terms where used making it harder to know which type was allowed
Previously multiple terms where used making it harder to know which type was allowed
or not.
* Unified diff interface to allow easy diffing between trees, trees and index, trees
and working tree, index and working tree, trees and index. This closely follows
Expand DownExpand Up@@ -355,7 +355,7 @@ Blob
GitCommand
-----------
* git.subcommand call scheme now prunes out None from the argument list, allowing
to be called moreconfortably as None can never be a valid to the git command
to be called morecomfortably as None can never be a valid to the git command
if converted to a string.
* Renamed 'git_dir' attribute to 'working_dir' which is exactly how it is used

Expand All@@ -382,19 +382,19 @@ Diff
Diffing
-------
* Commit and Tree objects now support diffing natively with a common interface to
compareagains other Commits or Trees, against the working tree or against the index.
compareagainst other Commits or Trees, against the working tree or against the index.

Index
-----
* A new Index class allows to read and write index files directly, and to perform
simple two and three way merges based on an arbitrary index.

Referernces
References
------------
* References are object that point to a Commit
* SymbolicReference are a pointer to a Reference Object, which itself points to a specific
Commit
* They willdynmically retrieve their object at the time of query to assure the information
* They willdynamically retrieve their object at the time of query to assure the information
is actual. Recently objects would be cached, hence ref object not be safely kept
persistent.

Expand All@@ -403,7 +403,7 @@ Repo
* Moved blame method from Blob to repo as it appeared to belong there much more.
* active_branch method now returns a Head object instead of a string with the name
of the active branch.
* tree method now requires a Ref instance as input and defaults to theactive_branche
* tree method now requires a Ref instance as input and defaults to theactive_branch
instead of master
* is_dirty now takes additional arguments allowing fine-grained control about what is
considered dirty
Expand DownExpand Up@@ -479,7 +479,7 @@ General
* Removed ambiguity between paths and treeishs. When calling commands that
accept treeish and path arguments and there is a path with the same name as
a treeish git cowardly refuses to pick one and asks for the command to use
the unambiguous syntax where '--'seperates the treeish from the paths.
the unambiguous syntax where '--'separates the treeish from the paths.

* ``Repo.commits``, ``Repo.commits_between``, ``Repo.commits_since``,
``Repo.commit_count``, ``Repo.commit``, ``Commit.count`` and
Expand DownExpand Up@@ -627,7 +627,7 @@ Tree
----
* Corrected problem with ``Tree.__div__`` not working with zero length files.
Removed ``__len__`` override and replaced with size instead. Also made size
cach properly. This is a breaking change.
cache properly. This is a breaking change.

0.1.1
=====
Expand Down
2 changes: 1 addition & 1 deletiondoc/source/intro.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -92,7 +92,7 @@ Getting Started
API Reference
=============

An organized section of theGitPthon API is at :ref:`api_reference_toplevel`.
An organized section of theGitPython API is at :ref:`api_reference_toplevel`.

.. _source-code-label:

Expand Down
6 changes: 3 additions & 3 deletionsgit/cmd.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,10 +68,10 @@ def handle_process_output(process, stdout_handler, stderr_handler,
:return: result of finalizer
:param process: subprocess.Popen instance
:param stdout_handler: f(stdout_line_string), or None
:paramstderr_hanlder: f(stderr_line_string), or None
:paramstderr_handler: f(stderr_line_string), or None
:param finalizer: f(proc) - wait for proc to finish
:param decode_streams:
Assume stdout/stderr streams are binary and decode themvefore pushing \
Assume stdout/stderr streams are binary and decode thembefore pushing \
their contents to handlers.
Set it to False if `universal_newline == True` (then streams are in text-mode)
or if decoding must happen later (i.e. for Diffs).
Expand DownExpand Up@@ -419,7 +419,7 @@ def set_persistent_git_options(self, **kwargs):

def _set_cache_(self, attr):
if attr == '_version_info':
# We only use the first 4 numbers, aseverthing else could be strings in fact (on windows)
# We only use the first 4 numbers, aseverything else could be strings in fact (on windows)
version_numbers = self._call_process('version').split(' ')[2]
self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4] if n.isdigit())
else:
Expand Down
6 changes: 3 additions & 3 deletionsgit/config.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -194,7 +194,7 @@ def __init__(self, file_or_files, read_only=True, merge_includes=True):
configuration files have been included
:param merge_includes: if True, we will read files mentioned in [include] sections and merge their
contents into ours. This makes it impossible to write back an individual configuration file.
Thus, if you want to modify a singleconifguration file, turn this off to leave the original
Thus, if you want to modify a singleconfiguration file, turn this off to leave the original
dataset unaltered when reading it."""
cp.RawConfigParser.__init__(self, dict_type=OrderedDict)

Expand DownExpand Up@@ -271,7 +271,7 @@ def _read(self, fp, fpname):
"""A direct copy of the py2.4 version of the super class's _read method
to assure it uses ordered dicts. Had to change one line to make it work.

Future versions have this fixed, but in fact its quiteembarassing for the
Future versions have this fixed, but in fact its quiteembarrassing for the
guys not to have done it right in the first place !

Removed big comments to make it more compact.
Expand DownExpand Up@@ -468,7 +468,7 @@ def write(self):
# end assert multiple files

if self._has_includes():
log.debug("Skipping write-back ofconfiuration file as include files were merged in." +
log.debug("Skipping write-back ofconfiguration file as include files were merged in." +
"Set merge_includes=False to prevent this.")
return
# end
Expand Down
14 changes: 7 additions & 7 deletionsgit/diff.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -91,11 +91,11 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs):

:param paths:
is a list of paths or a single path to limit the diff to.
It will only include at least one of thegivne path or paths.
It will only include at least one of thegiven path or paths.

:param create_patch:
If True, the returned Diff contains a detailed patch that if applied
makes the self to other. Patches aresomwhat costly as blobs have to be read
makes the self to other. Patches aresomewhat costly as blobs have to be read
and diffed.

:param kwargs:
Expand All@@ -106,7 +106,7 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs):

:note:
On a bare repository, 'other' needs to be provided as Index or as
as Tree/Commit, or a git command error willoccour"""
as Tree/Commit, or a git command error willoccur"""
args = list()
args.append("--abbrev=40") # we need full shas
args.append("--full-index") # get full index paths, not only filenames
Expand DownExpand Up@@ -172,7 +172,7 @@ class DiffIndex(list):
def iter_change_type(self, change_type):
"""
:return:
iteratoryieling Diff instances that match the given change_type
iteratoryielding Diff instances that match the given change_type

:param change_type:
Member of DiffIndex.change_type, namely:
Expand DownExpand Up@@ -347,7 +347,7 @@ def __str__(self):
msg += '\n---'
# END diff info

# Python2sillyness: have to assure we convert our likely to be unicode object to a string with the
# Python2silliness: 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:
Expand DownExpand Up@@ -427,7 +427,7 @@ def _index_from_patch_format(cls, repo, proc):
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-activelyassin it to our index
# and then retro-activelyassign it to our index
if previous_header is not None:
index[-1].diff = text[previous_header.end():header.start()]
# end assign actual diff
Expand DownExpand Up@@ -480,7 +480,7 @@ def handle_diff_line(line):
rename_from = None
rename_to = None

# NOTE: We cannot conclude from theexistance of a blob to change type
# NOTE: We cannot conclude from theexistence of a blob to change type
# as diffs with the working do not have blobs yet
if change_type == 'D':
b_blob_id = None
Expand Down
2 changes: 1 addition & 1 deletiongit/exc.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
""" Module containing all exceptions thrownthrougout the git package, """
""" Module containing all exceptions thrownthroughout the git package, """

from gitdb.exc import * # NOQA @UnusedWildImport
from git.compat import UnicodeMixin, safe_decode, string_types
Expand Down
12 changes: 6 additions & 6 deletionsgit/index/base.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -144,7 +144,7 @@ def _set_cache_(self, attr):
self._deserialize(stream)
finally:
lfd.rollback()
# The handles will be closed ondesctruction
# The handles will be closed ondestruction
# END read from default index on demand
else:
super(IndexFile, self)._set_cache_(attr)
Expand DownExpand Up@@ -880,7 +880,7 @@ def remove(self, items, working_tree=False, **kwargs):
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 bepreceeded
must be a file as well. If the destination is a directory, it may bepreceded
by one or more directories or files.

The working tree will be affected in non-bare repositories.
Expand All@@ -890,7 +890,7 @@ def move(self, items, skip_errors=False, **kwargs):
for reference.
:param skip_errors:
If True, errors such as ones resulting from missing source files will
beskpped.
beskipped.
:param kwargs:
Additional arguments you would like to pass to git-mv, such as dry_run
or force.
Expand All@@ -899,7 +899,7 @@ def move(self, items, skip_errors=False, **kwargs):
A list of pairs, containing the source file moved as well as its
actual destination. Relative to the repository root.

:raiseValueErorr: If only one item was given
:raiseValueError: If only one item was given
GitCommandError: If git could not handle your request"""
args = list()
if skip_errors:
Expand DownExpand Up@@ -995,7 +995,7 @@ def checkout(self, paths=None, force=False, fprogress=lambda *args: None, **kwar
prior and after a file has been checked out

:param kwargs:
Additional arguments to bepasesd to git-checkout-index
Additional arguments to bepassed to git-checkout-index

:return:
iterable yielding paths to files which have been checked out and are
Expand DownExpand Up@@ -1223,7 +1223,7 @@ def diff(self, other=diff.Diffable.Index, paths=None, create_patch=False, **kwar
cur_val = kwargs.get('R', False)
kwargs['R'] = not cur_val
return other.diff(self.Index, paths, create_patch, **kwargs)
# END diff against other itemhandlin
# END diff against other itemhandling

# if other is not None here, something is wrong
if other is not None:
Expand Down
2 changes: 1 addition & 1 deletiongit/index/fun.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -355,7 +355,7 @@ def aggressive_tree_merge(odb, tree_shas):
out_append(_tree_entry_to_baseindexentry(theirs, 3))
# END theirs changed
# else:
# theirsdidnt change
# theirsdidn't change
# pass
# END handle theirs
# END handle ours
Expand Down
2 changes: 1 addition & 1 deletiongit/index/util.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -72,7 +72,7 @@ def check_default_index(self, *args, **kwargs):
raise AssertionError(
"Cannot call %r on indices that do not represent the default git index" % func.__name__)
return func(self, *args, **kwargs)
# ENDwrpaper method
# ENDwrapper method

return check_default_index

Expand Down
6 changes: 3 additions & 3 deletionsgit/objects/base.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -127,7 +127,7 @@ class IndexObject(Object):
SubModule objects"""
__slots__ = ("path", "mode")

# forcompatability with iterable lists
# forcompatibility with iterable lists
_id_attribute_ = 'path'

def __init__(self, repo, binsha, mode=None, path=None):
Expand All@@ -137,7 +137,7 @@ def __init__(self, repo, binsha, mode=None, path=None):
:param binsha: 20 byte sha1
:param mode:
is the stat compatible file mode as int, use the stat module
to evaluate theinfomration
to evaluate theinformation
:param path:
is the path to the file in the file system, relative to the git repository root, i.e.
file.ext or folder/other.ext
Expand DownExpand Up@@ -165,7 +165,7 @@ def _set_cache_(self, attr):
% (attr, type(self).__name__))
else:
super(IndexObject, self)._set_cache_(attr)
# ENDhanlde slot attribute
# ENDhandle slot attribute

@property
def name(self):
Expand Down
4 changes: 2 additions & 2 deletionsgit/objects/commit.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -163,7 +163,7 @@ def count(self, paths='', **kwargs):
"""Count the number of commits reachable from this commit

:param paths:
is anoptinal path or a list of paths restricting the return value
is anoptional path or a list of paths restricting the return value
to commits actually containing the paths

:param kwargs:
Expand DownExpand Up@@ -192,7 +192,7 @@ def iter_items(cls, repo, rev, paths='', **kwargs):
:param repo: is the Repo
:param rev: revision specifier, see git-rev-parse for viable options
:param paths:
is anoptinal path or list of paths, if set only Commits that include the path
is anoptional path or list of paths, if set only Commits that include the path
or paths will be considered
:param kwargs:
optional keyword arguments to git rev-list where
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp