Skip to content

Commit 922d73c

Browse files
authored
Merge pull request libgit2#5805 from tniessen/include-typos
include: fix typos in comments
2 parents dcecc0b + 25efbc4 commit 922d73c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

include/git2/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ GIT_EXTERN(int) git_config_open_level(
263263
*
264264
* Git allows you to store your global configuration at
265265
* `$HOME/.gitconfig` or `$XDG_CONFIG_HOME/git/config`. For backwards
266-
* compatability, the XDG file shouldn't be used unless the use has
266+
* compatibility, the XDG file shouldn't be used unless the use has
267267
* created it explicitly. With this function you'll open the correct
268268
* one to write to.
269269
*

include/git2/index.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ GIT_EXTERN(int) git_index_write_tree(git_oid *out, git_index *index);
349349
*
350350
* The index must not contain any file in conflict.
351351
*
352-
* @param out Pointer where to store OID of the the written tree
352+
* @param out Pointer where to store OID of the written tree
353353
* @param index Index to write
354354
* @param repo Repository where to write the tree
355355
* @return 0 on success, GIT_EUNMERGED when the index is not clean

include/git2/refs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ GIT_EXTERN(int) git_reference_symbolic_create(git_reference **out, git_repositor
169169
*
170170
* The message for the reflog will be ignored if the reference does
171171
* not belong in the standard set (HEAD, branches and remote-tracking
172-
* branches) and and it does not have a reflog.
172+
* branches) and it does not have a reflog.
173173
*
174174
* @param out Pointer to the newly created reference
175175
* @param repo Repository where that reference will live
@@ -206,7 +206,7 @@ GIT_EXTERN(int) git_reference_create(git_reference **out, git_repository *repo,
206206
*
207207
* The message for the reflog will be ignored if the reference does
208208
* not belong in the standard set (HEAD, branches and remote-tracking
209-
* branches) and and it does not have a reflog.
209+
* branches) and it does not have a reflog.
210210
*
211211
* It will return GIT_EMODIFIED if the reference's value at the time
212212
* of updating does not match the one passed through `current_id`
@@ -318,7 +318,7 @@ GIT_EXTERN(git_repository *) git_reference_owner(const git_reference *ref);
318318
*
319319
* The message for the reflog will be ignored if the reference does
320320
* not belong in the standard set (HEAD, branches and remote-tracking
321-
* branches) and and it does not have a reflog.
321+
* branches) and it does not have a reflog.
322322
*
323323
* @param out Pointer to the newly created reference
324324
* @param ref The reference

include/git2/transport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
GIT_BEGIN_DECL
2424

2525
/**
26-
* Callback for messages recieved by the transport.
26+
* Callback for messages received by the transport.
2727
*
2828
* Return a negative value to cancel the network operation.
2929
*

0 commit comments

Comments
 (0)