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
e9369856
Commit
e9369856
authored
Mar 21, 2017
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: Gather streams to src/streams
parent
08c1b8fc
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
32 additions
and
29 deletions
+32
-29
src/CMakeLists.txt
+4
-1
src/global.c
+1
-1
src/streams/curl.c
+1
-1
src/streams/curl.h
+2
-2
src/streams/openssl.c
+3
-3
src/streams/openssl.h
+2
-2
src/streams/socket.c
+1
-1
src/streams/socket.h
+2
-2
src/streams/stransport.c
+3
-3
src/streams/stransport.h
+2
-2
src/streams/tls.c
+3
-3
src/streams/tls.h
+2
-2
src/transports/git.c
+1
-1
src/transports/http.c
+3
-3
src/transports/ssh.c
+1
-1
tests/core/stream.c
+1
-1
No files found.
src/CMakeLists.txt
View file @
e9369856
...
...
@@ -320,7 +320,10 @@ ELSE()
ENDIF()
FILE(GLOB SRC_OS unix/*.c unix/*.h)
ENDIF()
FILE(GLOB SRC_GIT2 *.c *.h transports/*.c transports/*.h xdiff/*.c xdiff/*.h)
FILE(GLOB SRC_GIT2 *.c *.h
streams/*.c streams/*.h
transports/*.c transports/*.h
xdiff/*.c xdiff/*.h)
# Determine architecture of the machine
IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
...
...
src/global.c
View file @
e9369856
...
...
@@ -11,7 +11,7 @@
#include "sysdir.h"
#include "filter.h"
#include "merge_driver.h"
#include "
openssl_stream
.h"
#include "
streams/openssl
.h"
#include "thread-utils.h"
#include "git2/global.h"
#include "transports/ssh.h"
...
...
src/
curl_stream
.c
→
src/
streams/curl
.c
View file @
e9369856
...
...
@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "
curl_stream
.h"
#include "
streams/curl
.h"
#ifdef GIT_CURL
...
...
src/
curl_stream
.h
→
src/
streams/curl
.h
View file @
e9369856
...
...
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_
curl_stream
_h__
#define INCLUDE_
curl_stream
_h__
#ifndef INCLUDE_
streams_curl
_h__
#define INCLUDE_
streams_curl
_h__
#include "common.h"
...
...
src/
openssl_stream
.c
→
src/
streams/openssl
.c
View file @
e9369856
...
...
@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "
openssl_stream
.h"
#include "
streams/openssl
.h"
#ifdef GIT_OPENSSL
...
...
@@ -14,13 +14,13 @@
#include "global.h"
#include "posix.h"
#include "stream.h"
#include "s
ocket_stream
.h"
#include "s
treams/socket
.h"
#include "netops.h"
#include "git2/transport.h"
#include "git2/sys/openssl.h"
#ifdef GIT_CURL
# include "
curl_stream
.h"
# include "
streams/curl
.h"
#endif
#ifndef GIT_WIN32
...
...
src/
openssl_stream
.h
→
src/
streams/openssl
.h
View file @
e9369856
...
...
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_
openssl_stream
_h__
#define INCLUDE_
openssl_stream
_h__
#ifndef INCLUDE_
streams_openssl
_h__
#define INCLUDE_
streams_openssl
_h__
#include "common.h"
...
...
src/s
ocket_stream
.c
→
src/s
treams/socket
.c
View file @
e9369856
...
...
@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "s
ocket_stream
.h"
#include "s
treams/socket
.h"
#include "posix.h"
#include "netops.h"
...
...
src/s
ocket_stream
.h
→
src/s
treams/socket
.h
View file @
e9369856
...
...
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_s
ocket_stream
_h__
#define INCLUDE_s
ocket_stream
_h__
#ifndef INCLUDE_s
treams_socket
_h__
#define INCLUDE_s
treams_socket
_h__
#include "common.h"
...
...
src/str
ansport_stream
.c
→
src/str
eams/stransport
.c
View file @
e9369856
...
...
@@ -5,7 +5,7 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "str
ansport_stream
.h"
#include "str
eams/stransport
.h"
#ifdef GIT_SECURE_TRANSPORT
...
...
@@ -15,8 +15,8 @@
#include "git2/transport.h"
#include "s
ocket_stream
.h"
#include "
curl_stream
.h"
#include "s
treams/socket
.h"
#include "
streams/curl
.h"
static
int
stransport_error
(
OSStatus
ret
)
{
...
...
src/str
ansport_stream
.h
→
src/str
eams/stransport
.h
View file @
e9369856
...
...
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_str
ansport_stream
_h__
#define INCLUDE_str
ansport_stream
_h__
#ifndef INCLUDE_str
eams_stransport
_h__
#define INCLUDE_str
eams_stransport
_h__
#include "common.h"
...
...
src/
tls_stream
.c
→
src/
streams/tls
.c
View file @
e9369856
...
...
@@ -5,12 +5,12 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "
tls_stream
.h"
#include "
streams/tls
.h"
#include "git2/errors.h"
#include "
openssl_stream
.h"
#include "str
ansport_stream
.h"
#include "
streams/openssl
.h"
#include "str
eams/stransport
.h"
static
git_stream_cb
tls_ctor
;
...
...
src/
tls_stream
.h
→
src/
streams/tls
.h
View file @
e9369856
...
...
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_
tls_stream
_h__
#define INCLUDE_
tls_stream
_h__
#ifndef INCLUDE_
streams_tls
_h__
#define INCLUDE_
streams_tls
_h__
#include "common.h"
...
...
src/transports/git.c
View file @
e9369856
...
...
@@ -12,7 +12,7 @@
#include "netops.h"
#include "git2/sys/transport.h"
#include "stream.h"
#include "s
ocket_stream
.h"
#include "s
treams/socket
.h"
#define OWNING_SUBTRANSPORT(s) ((git_subtransport *)(s)->parent.subtransport)
...
...
src/transports/http.c
View file @
e9369856
...
...
@@ -18,9 +18,9 @@
#include "smart.h"
#include "auth.h"
#include "auth_negotiate.h"
#include "
tls_stream
.h"
#include "s
ocket_stream
.h"
#include "
curl_stream
.h"
#include "
streams/tls
.h"
#include "s
treams/socket
.h"
#include "
streams/curl
.h"
git_http_auth_scheme
auth_schemes
[]
=
{
{
GIT_AUTHTYPE_NEGOTIATE
,
"Negotiate"
,
GIT_CREDTYPE_DEFAULT
,
git_http_auth_negotiate
},
...
...
src/transports/ssh.c
View file @
e9369856
...
...
@@ -17,7 +17,7 @@
#include "netops.h"
#include "smart.h"
#include "cred.h"
#include "s
ocket_stream
.h"
#include "s
treams/socket
.h"
#ifdef GIT_SSH
...
...
tests/core/stream.c
View file @
e9369856
#include "clar_libgit2.h"
#include "git2/sys/stream.h"
#include "
tls_stream
.h"
#include "
streams/tls
.h"
#include "stream.h"
static
git_stream
test_stream
;
...
...
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