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
953dee20
Commit
953dee20
authored
Dec 17, 2020
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: is_default_port is a bool
parent
b7ffc63b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/net.c
+1
-1
src/net.h
+2
-2
No files found.
src/net.c
View file @
953dee20
...
...
@@ -335,7 +335,7 @@ bool git_net_url_valid(git_net_url *url)
return
(
url
->
host
&&
url
->
port
&&
url
->
path
);
}
int
git_net_url_is_default_port
(
git_net_url
*
url
)
bool
git_net_url_is_default_port
(
git_net_url
*
url
)
{
const
char
*
default_port
;
...
...
src/net.h
View file @
953dee20
...
...
@@ -33,8 +33,8 @@ extern int git_net_url_joinpath(
/** Ensures that a URL is minimally valid (contains a host, port and path) */
extern
bool
git_net_url_valid
(
git_net_url
*
url
);
/** Returns
nonzero
if the URL is on the default port. */
extern
int
git_net_url_is_default_port
(
git_net_url
*
url
);
/** Returns
true
if the URL is on the default port. */
extern
bool
git_net_url_is_default_port
(
git_net_url
*
url
);
/* Applies a redirect to the URL with a git-aware service suffix. */
extern
int
git_net_url_apply_redirect
(
...
...
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