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
7efddeb7
Unverified
Commit
7efddeb7
authored
Feb 15, 2021
by
Aaron Franke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos
parent
935f8513
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
examples/checkout.c
+1
-1
examples/common.h
+1
-1
examples/tag.c
+2
-2
src/cc-compat.h
+1
-1
src/refs.c
+1
-1
src/remote.c
+3
-3
src/transports/winhttp.c
+1
-1
src/win32/w32_leakcheck.c
+1
-1
No files found.
examples/checkout.c
View file @
7efddeb7
...
...
@@ -14,7 +14,7 @@
#include "common.h"
/* Define the printf format specifer to use for size_t output */
/* Define the printf format specif
i
er to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__)
# define PRIuZ "Iu"
# define PRIxZ "Ix"
...
...
examples/common.h
View file @
7efddeb7
...
...
@@ -36,7 +36,7 @@
#endif
#ifndef PRIuZ
/* Define the printf format specifer to use for size_t output */
/* Define the printf format specif
i
er to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__)
# define PRIuZ "Iu"
#else
...
...
examples/tag.c
View file @
7efddeb7
...
...
@@ -188,7 +188,7 @@ static void action_delete_tag(tag_state *state)
git_object_free
(
obj
);
}
static
void
action_create_lighweight_tag
(
tag_state
*
state
)
static
void
action_create_ligh
t
weight_tag
(
tag_state
*
state
)
{
git_repository
*
repo
=
state
->
repo
;
struct
tag_options
*
opts
=
state
->
opts
;
...
...
@@ -260,7 +260,7 @@ static void parse_options(tag_action *action, struct tag_options *opts, int argc
print_usage
();
if
(
*
action
!=
&
action_create_tag
)
*
action
=
&
action_create_lighweight_tag
;
*
action
=
&
action_create_ligh
t
weight_tag
;
}
else
if
(
!
strcmp
(
curr
,
"-n"
))
{
opts
->
num_lines
=
1
;
*
action
=
&
action_list_tags
;
...
...
src/cc-compat.h
View file @
7efddeb7
...
...
@@ -45,7 +45,7 @@
#define GIT_UNUSED(x) ((void)(x))
/* Define the printf format specifer to use for size_t output */
/* Define the printf format specif
i
er to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__)
/* Visual Studio 2012 and prior lack PRId64 entirely */
...
...
src/refs.c
View file @
7efddeb7
...
...
@@ -1343,7 +1343,7 @@ const char *git_reference__shorthand(const char *name)
else
if
(
!
git__prefixcmp
(
name
,
GIT_REFS_DIR
))
return
name
+
strlen
(
GIT_REFS_DIR
);
/* No shorthands are avai
able, so just return the name
*/
/* No shorthands are avai
lable, so just return the name.
*/
return
name
;
}
...
...
src/remote.c
View file @
7efddeb7
...
...
@@ -121,7 +121,7 @@ static int write_add_refspec(git_repository *repo, const char *name, const char
return
error
;
/*
* "$^" is a
unmatche
able regexp: it will not match anything at all, so
* "$^" is a
n unmatch
able regexp: it will not match anything at all, so
* all values will be considered new and we will not replace any
* present value.
*/
...
...
@@ -1317,7 +1317,7 @@ int git_remote_prune(git_remote *remote, const git_remote_callbacks *callbacks)
if
(
error
==
GIT_ENOTFOUND
)
continue
;
/*
if we did find a source, remove it from the candiates
*/
/*
If we did find a source, remove it from the candidates.
*/
if
((
error
=
git_vector_set
((
void
**
)
&
src_name
,
&
candidates
,
i
,
NULL
))
<
0
)
goto
cleanup
;
...
...
@@ -1682,7 +1682,7 @@ int git_remote_update_tips(
goto
out
;
}
/*
only try to do opportunisitic updates if the refpec lists differ
*/
/*
Only try to do opportunistic updates if the refpec lists differ.
*/
if
(
remote
->
passed_refspecs
)
error
=
opportunistic_updates
(
remote
,
callbacks
,
&
refs
,
reflog_message
);
...
...
src/transports/winhttp.c
View file @
7efddeb7
...
...
@@ -268,7 +268,7 @@ static int acquire_fallback_cred(
pISM
->
lpVtbl
->
Release
(
pISM
);
}
/* Only unitialize if the call to CoInitializeEx was successful. */
/* Only uni
ni
tialize if the call to CoInitializeEx was successful. */
if
(
SUCCEEDED
(
hCoInitResult
))
CoUninitialize
();
}
...
...
src/win32/w32_leakcheck.c
View file @
7efddeb7
...
...
@@ -513,7 +513,7 @@ int git_win32_leakcheck_stacktrace_dump(
*/
void
git_win32_leakcheck_stacktrace_cleanup
(
void
)
{
/* At shutdown/cleanup, dump cum
m
ulative leak info
/* At shutdown/cleanup, dump cumulative leak info
* with everything since startup. This might generate
* extra noise if the caller has been doing checkpoint
* dumps, but it might also eliminate some false
...
...
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