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
05551ca0
Commit
05551ca0
authored
Mar 03, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove now unnecessary `gitno_unescape`
parent
60e7848e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
src/netops.c
+0
-18
src/netops.h
+0
-2
No files found.
src/netops.c
View file @
05551ca0
...
...
@@ -206,24 +206,6 @@ void gitno_connection_data_free_ptrs(gitno_connection_data *d)
git__free
(
d
->
pass
);
d
->
pass
=
NULL
;
}
#define hex2c(c) ((c | 32) % 39 - 9)
char
*
gitno_unescape
(
char
*
str
)
{
int
x
,
y
;
int
len
=
(
int
)
strlen
(
str
);
for
(
x
=
y
=
0
;
str
[
y
];
++
x
,
++
y
)
{
if
((
str
[
x
]
=
str
[
y
])
==
'%'
)
{
if
(
y
<
len
-
2
&&
isxdigit
(
str
[
y
+
1
])
&&
isxdigit
(
str
[
y
+
2
]))
{
str
[
x
]
=
(
hex2c
(
str
[
y
+
1
])
<<
4
)
+
hex2c
(
str
[
y
+
2
]);
y
+=
2
;
}
}
}
str
[
x
]
=
'\0'
;
return
str
;
}
int
gitno_extract_url_parts
(
char
**
host_out
,
char
**
port_out
,
...
...
src/netops.h
View file @
05551ca0
...
...
@@ -96,6 +96,4 @@ int gitno_extract_url_parts(
const
char
*
url
,
const
char
*
default_port
);
char
*
gitno_unescape
(
char
*
str
);
#endif
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