Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
30ec0526
Commit
30ec0526
authored
Dec 05, 2014
by
nulltoken
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2744 from epmatsw/spelling
Spelling fixes
parents
e79fbd9e
b874629b
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
23 additions
and
23 deletions
+23
-23
deps/http-parser/http_parser.c
+1
-1
deps/regex/regex.c
+1
-1
examples/general.c
+2
-2
include/git2/branch.h
+1
-1
include/git2/buffer.h
+1
-1
include/git2/config.h
+1
-1
include/git2/refs.h
+1
-1
include/git2/remote.h
+1
-1
include/git2/submodule.h
+1
-1
include/git2/sys/mempack.h
+1
-1
include/git2/sys/transport.h
+1
-1
src/commit_list.c
+1
-1
src/common.h
+1
-1
src/config_file.c
+1
-1
src/odb_loose.c
+1
-1
src/path.h
+1
-1
src/pool.c
+1
-1
src/repository.h
+1
-1
src/tag.c
+1
-1
src/xdiff/xdiffi.c
+1
-1
src/xdiff/xhistogram.c
+1
-1
tests/index/tests.c
+1
-1
No files found.
deps/http-parser/http_parser.c
View file @
30ec0526
...
...
@@ -1569,7 +1569,7 @@ size_t http_parser_execute (http_parser *parser,
/* Here we call the headers_complete callback. This is somewhat
* different than other callbacks because if the user returns 1, we
* will interpret that as saying that this message has no body. This
* is needed for the annoying case of rec
ie
ving a response to a HEAD
* is needed for the annoying case of rec
ei
ving a response to a HEAD
* request.
*
* We'd like to use CALLBACK_NOTIFY_NOADVANCE() here but we cannot, so
...
...
deps/regex/regex.c
View file @
30ec0526
...
...
@@ -20,7 +20,7 @@
#include "config.h"
/* Make sure noone compiles this code with a C++ compiler. */
/* Make sure no
one compiles this code with a C++ compiler. */
#ifdef __cplusplus
# error "This is C code, use a C compiler"
#endif
...
...
examples/general.c
View file @
30ec0526
...
...
@@ -126,7 +126,7 @@ int main (int argc, char** argv)
// We can read raw objects directly from the object database if we have
// the oid (SHA) of the object. This allows us to access objects without
// knowing th
ie
r type and inspect the raw bytes unparsed.
// knowing th
ei
r type and inspect the raw bytes unparsed.
error
=
git_odb_read
(
&
obj
,
odb
,
&
oid
);
check_error
(
error
,
"finding object in repository"
);
...
...
@@ -402,7 +402,7 @@ int main (int argc, char** argv)
// Now that we have the starting point pushed onto the walker, we start
// asking for ancestors. It will return them in the sorting order we asked
// for as commit oids. We can then lookup and parse the commited pointed
// for as commit oids. We can then lookup and parse the commit
t
ed pointed
// at by the returned OID; note that this operation is specially fast
// since the raw contents of the commit object will be cached in memory
while
((
git_revwalk_next
(
&
oid
,
walk
))
==
0
)
{
...
...
include/git2/branch.h
View file @
30ec0526
...
...
@@ -244,7 +244,7 @@ GIT_EXTERN(int) git_branch_is_head(
/**
* Return the name of remote that the remote tracking branch belongs to.
*
* @param out Pointer to the user-allocated git_buf which will be filled
iw
th the name of the remote.
* @param out Pointer to the user-allocated git_buf which will be filled
wi
th the name of the remote.
*
* @param repo The repository where the branch lives.
*
...
...
include/git2/buffer.h
View file @
30ec0526
...
...
@@ -74,7 +74,7 @@ GIT_EXTERN(void) git_buf_free(git_buf *buffer);
/**
* Resize the buffer allocation to make more space.
*
* This will attempt to grow the buffer to accomodate the target size.
* This will attempt to grow the buffer to accom
m
odate the target size.
*
* If the buffer refers to memory that was not allocated by libgit2 (i.e.
* the `asize` field is zero), then `ptr` will be replaced with a newly
...
...
include/git2/config.h
View file @
30ec0526
...
...
@@ -270,7 +270,7 @@ GIT_EXTERN(int) git_config_get_entry(
*
* All config files will be looked into, in the order of their
* defined level. A higher level means a higher priority. The
* first occurence of the variable will be returned here.
* first occur
r
ence of the variable will be returned here.
*
* @param out pointer to the variable where the value should be stored
* @param cfg where to look for the variable
...
...
include/git2/refs.h
View file @
30ec0526
...
...
@@ -58,7 +58,7 @@ GIT_EXTERN(int) git_reference_name_to_id(
* Lookup a reference by DWIMing its short name
*
* Apply the git precendence rules to the given shorthand to determine
* which reference the user is refering to.
* which reference the user is refer
r
ing to.
*
* @param out pointer in which to store the reference
* @param repo the repository in which to look
...
...
include/git2/remote.h
View file @
30ec0526
...
...
@@ -593,7 +593,7 @@ GIT_EXTERN(void) git_remote_set_autotag(
*
* @param problems non-default refspecs cannot be renamed and will be
* stored here for further processing by the caller. Always free this
* strarray on succesful return.
* strarray on succes
s
ful return.
* @param repo the repository in which to rename
* @param name the current name of the reamote
* @param new_name the new name the remote should bear
...
...
include/git2/submodule.h
View file @
30ec0526
...
...
@@ -148,7 +148,7 @@ GIT_EXTERN(void) git_submodule_free(git_submodule *submodule);
* Iterate over all tracked submodules of a repository.
*
* See the note on `git_submodule` above. This iterates over the tracked
* submodules as decribed therein.
* submodules as de
s
cribed therein.
*
* If you are concerned about items in the working directory that look like
* submodules but are not tracked, the diff API will generate a diff record
...
...
include/git2/sys/mempack.h
View file @
30ec0526
...
...
@@ -47,7 +47,7 @@ int git_mempack_new(git_odb_backend **out);
* Dump all the queued in-memory writes to a packfile.
*
* The contents of the packfile will be stored in the given buffer.
* It is the caller's respons
a
bility to ensure that the generated
* It is the caller's respons
i
bility to ensure that the generated
* packfile is available to the repository (e.g. by writing it
* to disk, or doing something crazy like distributing it across
* several copies of the repository over a network).
...
...
include/git2/sys/transport.h
View file @
30ec0526
...
...
@@ -49,7 +49,7 @@ struct git_transport {
/* This function may be called after a successful call to
* connect(). The array returned is owned by the transport and
* is guranteed until the next call of a transport function. */
* is gu
a
ranteed until the next call of a transport function. */
int
(
*
ls
)(
const
git_remote_head
***
out
,
size_t
*
size
,
...
...
src/commit_list.c
View file @
30ec0526
...
...
@@ -151,7 +151,7 @@ static int commit_quick_parse(
while
(
buffer
>
committer_start
&&
git__isspace
(
*
buffer
))
buffer
--
;
/* Seek for the begining of the pack of digits */
/* Seek for the begin
n
ing of the pack of digits */
while
(
buffer
>
committer_start
&&
git__isdigit
(
*
buffer
))
buffer
--
;
...
...
src/common.h
View file @
30ec0526
...
...
@@ -68,7 +68,7 @@
#define GITERR_CHECK_ALLOC(ptr) if (ptr == NULL) { return -1; }
/**
* Check a return value and prop
o
gate result if non-zero.
* Check a return value and prop
a
gate result if non-zero.
*/
#define GITERR_CHECK_ERROR(code) \
do { int _err = (code); if (_err) return _err; } while (0)
...
...
src/config_file.c
View file @
30ec0526
...
...
@@ -1532,7 +1532,7 @@ static int config_write(diskfile_backend *cfg, const char *key, const regex_t *p
goto
rewrite_fail
;
/* Sanity check: if we are here, and value is NULL, that means that somebody
* touched the config file after our intial read. We should probably assert()
* touched the config file after our in
i
tial read. We should probably assert()
* this, but instead we'll handle it gracefully with an error. */
if
(
value
==
NULL
)
{
giterr_set
(
GITERR_CONFIG
,
...
...
src/odb_loose.c
View file @
30ec0526
...
...
@@ -56,7 +56,7 @@ typedef struct {
/***********************************************************
*
* MISCELANEOUS HELPER FUNCTIONS
* MISCEL
L
ANEOUS HELPER FUNCTIONS
*
***********************************************************/
...
...
src/path.h
View file @
30ec0526
...
...
@@ -307,7 +307,7 @@ extern int git_path_cmp(
* reached (inclusive of a final call at the root_path).
*
* Returning anything other than 0 from the callback function
* will stop the iteration and prop
o
gate the error to the caller.
* will stop the iteration and prop
a
gate the error to the caller.
*
* @param pathbuf Buffer the function reads the directory from and
* and updates with each successive name.
...
...
src/pool.c
View file @
30ec0526
...
...
@@ -159,7 +159,7 @@ void *git_pool_malloc(git_pool *pool, uint32_t items)
return
ptr
;
}
/* just add a block if there is no open one to accomodate this */
/* just add a block if there is no open one to accom
m
odate this */
if
(
size
>=
pool
->
page_size
||
!
scan
||
scan
->
avail
<
size
)
return
pool_alloc_page
(
pool
,
size
);
...
...
src/repository.h
View file @
30ec0526
...
...
@@ -150,7 +150,7 @@ int git_repository_index__weakptr(git_index **out, git_repository *repo);
* CVAR cache
*
* Efficient access to the most used config variables of a repository.
* The cache is cleared everytime the config backend is replaced.
* The cache is cleared every
time the config backend is replaced.
*/
int
git_repository__cvar
(
int
*
out
,
git_repository
*
repo
,
git_cvar_cached
cvar
);
void
git_repository__cvar_cache_clear
(
git_repository
*
repo
);
...
...
src/tag.c
View file @
30ec0526
...
...
@@ -258,7 +258,7 @@ static int git_tag_create__internal(
goto
cleanup
;
/** Ensure the tag name doesn't conflict with an already existing
* reference unless overwriting has explictly been requested **/
* reference unless overwriting has explic
i
tly been requested **/
if
(
error
==
0
&&
!
allow_ref_overwrite
)
{
git_buf_free
(
&
ref_name
);
giterr_set
(
GITERR_TAG
,
"Tag already exists"
);
...
...
src/xdiff/xdiffi.c
View file @
30ec0526
...
...
@@ -490,7 +490,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
/*
* Try to move back the possibly merged group of changes, to match
* the recorded postion in the other file.
* the recorded pos
i
tion in the other file.
*/
while
(
ixref
<
ix
)
{
rchg
[
--
ixs
]
=
1
;
...
...
src/xdiff/xhistogram.c
View file @
30ec0526
...
...
@@ -55,7 +55,7 @@ struct histindex {
struct
record
{
unsigned
int
ptr
,
cnt
;
struct
record
*
next
;
}
**
records
,
/* an ocurrence */
}
**
records
,
/* an oc
c
urrence */
**
line_map
;
/* map of line to record chain */
chastore_t
rcha
;
unsigned
int
*
next_ptrs
;
...
...
tests/index/tests.c
View file @
30ec0526
...
...
@@ -506,7 +506,7 @@ void test_index_tests__reload_from_disk(void)
cl_git_pass
(
git_index_open
(
&
read_index
,
write_index
->
index_file_path
));
cl_assert_equal_i
(
false
,
read_index
->
on_disk
);
/* Stage two new files agai
sn
t the write_index */
/* Stage two new files agai
ns
t the write_index */
cl_git_pass
(
git_index_add_bypath
(
write_index
,
"a.txt"
));
cl_git_pass
(
git_index_add_bypath
(
write_index
,
"b.txt"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment