Skip to content

Commit 08b2b40

Browse files
yarikopticjdavid
authored andcommitted
[DATALAD RUNCMD] run codespell throughout fixing few left typos automagically
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 2ce74eb commit 08b2b40

19 files changed

+29
-29
lines changed

CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Deprecations:
259259
- New `keep_all` and `paths` optional arguments for
260260
`Repository.stash(...)`
261261
[#1202](https://github.com/libgit2/pygit2/pull/1202)
262-
- New `Respository.state()`
262+
- New `Repository.state()`
263263
[#1204](https://github.com/libgit2/pygit2/pull/1204)
264264
- Improve `Repository.write_archive(...)` performance
265265
[#1183](https://github.com/libgit2/pygit2/pull/1183)
@@ -657,7 +657,7 @@ Breaking changes:
657657

658658
Breaking changes:
659659

660-
- Now the Repository has a new attribue `odb` for object database:
660+
- Now the Repository has a new attribute `odb` for object database:
661661

662662
# Before
663663
repository.read(...)
@@ -862,7 +862,7 @@ Other changes:
862862
[#610](https://github.com/libgit2/pygit2/issues/610)
863863
- Fix tests failing in some cases
864864
[#795](https://github.com/libgit2/pygit2/issues/795)
865-
- Automatize wheels upload to pypi
865+
- Automate wheels upload to pypi
866866
[#563](https://github.com/libgit2/pygit2/issues/563)
867867

868868
# 0.27.0 (2018-03-30)

docs/development.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Step 3. Build pygit2 with debug symbols::
8282
Step 4. Install requirements::
8383

8484
$ $PYTHONBIN/python3 setup.py install
85-
$ pip insall pytest
85+
$ pip install pytest
8686

8787
Step 4. Run valgrind::
8888

docs/install.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Python requirements (these are specified in ``setup.py``):
6060
Libgit2 **v1.9.x**; binary wheels already include libgit2, so you only need to
6161
worry about this if you install the source package.
6262

63-
Optional libgit2 dependecies to support ssh and https:
63+
Optional libgit2 dependencies to support ssh and https:
6464

6565
- https: WinHTTP (Windows), SecureTransport (OS X) or OpenSSL.
6666
- ssh: libssh2 1.9.0 or later, pkg-config
@@ -214,7 +214,7 @@ libgit2 within a virtual environment
214214

215215
This is how to install both libgit2 and pygit2 within a virtual environment.
216216

217-
This is useful if you don't have root acces to install libgit2 system wide.
217+
This is useful if you don't have root access to install libgit2 system wide.
218218
Or if you wish to have different versions of libgit2/pygit2 installed in
219219
different virtual environments, isolated from each other.
220220

@@ -265,7 +265,7 @@ So you need to either set ``LD_LIBRARY_PATH`` before using pygit2, like:
265265
Or, like we have done in the instructions above, use the `rpath
266266
<http://en.wikipedia.org/wiki/Rpath>`_, it hard-codes extra search paths within
267267
the pygit2 extension modules, so you don't need to set ``LD_LIBRARY_PATH``
268-
everytime. Verify yourself if curious:
268+
every time. Verify yourself if curious:
269269

270270
.. code-block:: sh
271271
@@ -317,7 +317,7 @@ source package.
317317

318318
The easiest way is to first install libgit2 with the `Homebrew <http://brew.sh>`_
319319
package manager and then use pip3 for pygit2. The following example assumes that
320-
XCode and Hombrew are already installed.
320+
XCode and Homebrew are already installed.
321321

322322
.. code-block:: sh
323323

docs/merge.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The following methods perform the calculation for a base to an n-way merge.
6666
.. automethod:: pygit2.Repository.merge_base_many
6767
.. automethod:: pygit2.Repository.merge_base_octopus
6868

69-
With this base at hand one can do repeated invokations of
69+
With this base at hand one can do repeated invocations of
7070
:py:meth:`.Repository.merge_commits` and :py:meth:`.Repository.merge_trees`
7171
to perform the actual merge into one tree (and deal with conflicts along the
7272
way).

docs/objects.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Object lookup
1616

1717
In the previous chapter we learnt about Object IDs. With an Oid we can ask the
1818
repository to get the associated object. To do that the ``Repository`` class
19-
implementes a subset of the mapping interface.
19+
implements a subset of the mapping interface.
2020

2121
.. autoclass:: pygit2.Repository
2222
:noindex:
@@ -90,7 +90,7 @@ Blobs
9090
=================
9191

9292
A blob is just a raw byte string. They are the Git equivalent to files in
93-
a filesytem.
93+
a filesystem.
9494

9595
This is their API:
9696

@@ -221,7 +221,7 @@ Creating trees
221221
Commits
222222
=================
223223

224-
A commit is a snapshot of the working dir with meta informations like author,
224+
A commit is a snapshot of the working dir with meta information like author,
225225
committer and others.
226226

227227
.. autoclass:: pygit2.Commit

pygit2/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def init_repository(
8686
8787
The *flags* may be a combination of enums.RepositoryInitFlag constants:
8888
89-
- BARE (overriden by the *bare* parameter)
89+
- BARE (overridden by the *bare* parameter)
9090
- NO_REINIT
9191
- NO_DOTGIT_DIR
9292
- MKDIR

pygit2/_build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939

4040
#
41-
# Utility functions to get the paths required for bulding extensions
41+
# Utility functions to get the paths required for building extensions
4242
#
4343
def _get_libgit2_path():
4444
# LIBGIT2 environment variable takes precedence

pygit2/callbacks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,10 @@ def git_remote_callbacks(payload):
405405
#
406406
# C callbacks
407407
#
408-
# These functions are called by libgit2. They cannot raise execptions, since
408+
# These functions are called by libgit2. They cannot raise exceptions, since
409409
# they return to libgit2, they can only send back error codes.
410410
#
411-
# They cannot be overriden, but sometimes the only thing these functions do is
411+
# They cannot be overridden, but sometimes the only thing these functions do is
412412
# to proxy the call to a user defined function. If user defined functions
413413
# raises an exception, the callback must store it somewhere and return
414414
# GIT_EUSER to libgit2, then the outer Python code will be able to reraise the

pygit2/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def get_xdg_config():
304304

305305

306306
class ConfigEntry:
307-
"""An entry in a configuation object."""
307+
"""An entry in a configuration object."""
308308

309309
@classmethod
310310
def _from_c(cls, ptr, iterator=None):
@@ -321,7 +321,7 @@ def _from_c(cls, ptr, iterator=None):
321321
# git_config_iterator_free when we've deleted all ConfigEntry objects.
322322
# But it's not, to reproduce the error comment the lines below and run
323323
# the script in https://github.com/libgit2/pygit2/issues/970
324-
# So instead we load the Python object immmediately. Ideally we should
324+
# So instead we load the Python object immediately. Ideally we should
325325
# investigate libgit2 source code.
326326
if iterator is not None:
327327
entry.raw_name = entry.raw_name

pygit2/decl/repository.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int git_repository_set_head(
8181

8282
int git_repository_set_head_detached(
8383
git_repository* repo,
84-
const git_oid* commitish);
84+
const git_oid* committish);
8585

8686
int git_repository_hashfile(git_oid *out, git_repository *repo, const char *path, git_object_t type, const char *as_path);
8787
int git_repository_ident(const char **name, const char **email, const git_repository *repo);

pygit2/refspec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def src(self):
4343

4444
@property
4545
def dst(self):
46-
"""Destinaton or rhs of the refspec"""
46+
"""Destination or rhs of the refspec"""
4747
return ffi.string(C.git_refspec_dst(self._refspec)).decode('utf-8')
4848

4949
@property

pygit2/remotes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def push(self, specs, callbacks=None, proxy=None, push_options=None):
246246
function will return successfully. Thus it is strongly recommended to
247247
install a callback, that implements
248248
:py:meth:`RemoteCallbacks.push_update_reference` and check the passed
249-
parameters for successfull operations.
249+
parameters for successful operations.
250250
251251
Parameters:
252252

pygit2/repository.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ def describe(
987987
988988
always_use_long_format : bool
989989
Always output the long format (the nearest tag, the number of
990-
commits, and the abbrevated commit name) even when the committish
990+
commits, and the abbreviated commit name) even when the committish
991991
matches a tag.
992992
993993
dirty_suffix : str

src/odb_backend.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pgit_odb_backend_read_prefix(git_oid *oid_out, void **ptr, size_t *sz, git_objec
103103
if (result == NULL)
104104
return git_error_for_exc();
105105

106-
// Parse output from calback
106+
// Parse output from callback
107107
PyObject *py_oid_out;
108108
Py_ssize_t type_value;
109109
const char *bytes;

src/reference.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Reference_rename(Reference *self, PyObject *py_name)
230230
if (err)
231231
return Error_set(err);
232232

233-
// Upadate reference
233+
// Update reference
234234
git_reference_free(self->reference);
235235
self->reference = new_reference;
236236

src/repository.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ extern PyObject *FileStatusEnum;
6969
extern PyObject *MergeAnalysisEnum;
7070
extern PyObject *MergePreferenceEnum;
7171

72-
/* forward-declaration for Repsository._from_c() */
72+
/* forward-declaration for Repository._from_c() */
7373
PyTypeObject RepositoryType;
7474

7575
PyObject *
@@ -2078,7 +2078,7 @@ Repository_free(Repository *self)
20782078
PyDoc_STRVAR(Repository_expand_id__doc__,
20792079
"expand_id(hex: str) -> Oid\n"
20802080
"\n"
2081-
"Expand a string into a full Oid according to the objects in this repsitory.\n");
2081+
"Expand a string into a full Oid according to the objects in this repository.\n");
20822082

20832083
PyObject *
20842084
Repository_expand_id(Repository *self, PyObject *py_hex)

src/signature.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Signature_init(Signature *self, PyObject *args, PyObject *kwds)
8181
void
8282
Signature_dealloc(Signature *self)
8383
{
84-
/* self->obj is the owner of the git_signature C structure, so we musn't free it */
84+
/* self->obj is the owner of the git_signature C structure, so we mustn't free it */
8585
if (self->obj) {
8686
Py_CLEAR(self->obj);
8787
} else {

test/test_repository_bare.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_head(barerepo):
6060

6161

6262
def test_set_head(barerepo):
63-
# Test setting a detatched HEAD.
63+
# Test setting a detached HEAD.
6464
barerepo.set_head(pygit2.Oid(hex=PARENT_SHA))
6565
assert barerepo.head.target == PARENT_SHA
6666
# And test setting a normal HEAD.

test/test_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_modify_tree(barerepo):
169169
def test_iterate_tree(barerepo):
170170
"""
171171
Testing that we're able to iterate of a Tree object and that the
172-
resulting sha strings are consitent with the sha strings we could
172+
resulting sha strings are consistent with the sha strings we could
173173
get with other Tree access methods.
174174
"""
175175
tree = barerepo[TREE_SHA]

0 commit comments

Comments
 (0)