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
ac1a5e20
Commit
ac1a5e20
authored
Jul 21, 2015
by
Sven Strickroth
Committed by
Carlos Martín Nieto
Jul 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make libgit2 work on Windows Vista again
(fixes issue #3316) Signed-off-by: Sven Strickroth <email@cs-ware.de>
parent
555b3518
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/path.c
+8
-3
No files found.
src/path.c
View file @
ac1a5e20
...
...
@@ -12,6 +12,7 @@
#include "win32/posix.h"
#include "win32/buffer.h"
#include "win32/w32_util.h"
#include "win32/version.h"
#else
#include <dirent.h>
#endif
...
...
@@ -1085,7 +1086,7 @@ int git_path_direach(
#if defined(GIT_WIN32) && !defined(__MINGW32__)
/* Using _FIND_FIRST_EX_LARGE_FETCH may increase performance in Windows 7
* and better.
Prior versions will ignore this.
* and better.
*/
#ifndef FIND_FIRST_EX_LARGE_FETCH
# define FIND_FIRST_EX_LARGE_FETCH 2
...
...
@@ -1099,6 +1100,10 @@ int git_path_diriter_init(
git_win32_path
path_filter
;
git_buf
hack
=
{
0
};
static
int
is_win7_or_later
=
-
1
;
if
(
is_win7_or_later
<
0
)
is_win7_or_later
=
git_has_win32_version
(
6
,
1
,
0
);
assert
(
diriter
&&
path
);
memset
(
diriter
,
0
,
sizeof
(
git_path_diriter
));
...
...
@@ -1122,11 +1127,11 @@ int git_path_diriter_init(
diriter
->
handle
=
FindFirstFileExW
(
path_filter
,
FindExInfoBasic
,
is_win7_or_later
?
FindExInfoBasic
:
FindExInfoStandard
,
&
diriter
->
current
,
FindExSearchNameMatch
,
NULL
,
FIND_FIRST_EX_LARGE_FETCH
);
is_win7_or_later
?
FIND_FIRST_EX_LARGE_FETCH
:
0
);
if
(
diriter
->
handle
==
INVALID_HANDLE_VALUE
)
{
giterr_set
(
GITERR_OS
,
"Could not open directory '%s'"
,
path
);
...
...
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