| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| | |
This is just a bunch of small fixes that I noticed while looking
at the UTF8 and UTF16 path stuff. It fixes a slowdown in looking
for an empty directory (not exiting loop asap), makes the dir name
in the git__DIR structure be a GIT_FLEX_ARRAY to save an allocation,
and fixes some slightly odd assumptions in the cl_getenv helper.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
...and normalize the signatures of the two conversion functions.
|
| |
| |
| |
| |
| | |
Also fixed up call-sites to use the correct buffer sizes, especially
when converting to utf-8.
|
|/
|
|
|
| |
Avoid wrapping around extension size when reading, avoid walking off
the end of the buffer when reading names.
|
| |
|
|
|
|
|
|
| |
A junction has S_IFDIR | S_IFLNK set, however, only one makes sense.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|
|
|
|
|
| |
WC_ERR_INVALID_CHARS might be already defined by the Windows SDK.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| |
|
|
|
|
| |
This reverts commit 095bfd748766966f5515bdfe64867d6a09287123.
|
|
|
|
|
| |
This fixes problems with missing function prototypes and 64-bit
data issues on Windows.
|
|
|
|
|
|
| |
`lpExitCode` is a pointer to a long. A long is 32 bits wide on Windows.
It means that on Windows 64bits, `GetExitCodeThread()` doesn't set/clear the high-order bytes of the 64 bits memory space pointed at by `value_ptr`.
|
|
|
|
| |
Make InternalName and OriginalFilename resources reflect the name of the compiled binary.
|
| |
|
| |
|
| |
|
|\
| |
| | |
p_stat() should follow symlinks on windows
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
| |
The indexer was creating a packfile object separately from the
code in pack.c which was a problem since I put a call to
git_mutex_init into just pack.c. This commit updates the pack
function for creating a new pack object (i.e. git_packfile_check())
so that it can be used in both places and then makes indexer.c
use the shared initialization routine.
There are also a few minor formatting and warning message fixes.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Get rid of some dead code, tighten things up a bit, and fix a bug
with core::env test.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This switches the APIs for setting and getting the global/system
search paths from using git_strarray to using a simple string with
GIT_PATH_LIST_SEPARATOR delimited paths, just as the environment
PATH variable would contain. This makes it simpler to get and set
the value.
I also added code to expand "$PATH" when setting a new value to
embed the old value of the path. This means that I no longer
require separate actions to PREPEND to the value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The goal of this work is to expose the search logic for "global",
"system", and "xdg" files through the git_libgit2_opts() interface.
Behind the scenes, I changed the logic for finding files to have a
notion of a git_strarray that represents a search path and to store
a separate search path for each of the three tiers of config file.
For each tier, I implemented a function to initialize it to default
values (generally based on environment variables), and then general
interfaces to get it, set it, reset it, and prepend new directories
to it.
Next, I exposed these interfaces through the git_libgit2_opts
interface, reusing the GIT_CONFIG_LEVEL_SYSTEM, etc., constants
for the user to control which search path they were modifying.
There are alternative designs for the opts interface / argument
ordering, so I'm putting this phase out for discussion.
Additionally, I ended up doing a little bit of clean up regarding
attr.h and attr_file.h, adding a new attrcache.h so the other two
files wouldn't have to be included in so many places.
|
|\
| |
| | |
Why cdecl why?
|
| |
| |
| |
| |
| | |
This fixes some snprintf and vsnprintf related deprecation
warnings we've been having on Windows with recent compilers.
|
| |
| |
| |
| |
| |
| | |
This removes the one-off GIT_CDECL and adds a new standard way of
doing this named GIT_STDLIB_CALL with a src/win32 specific def
when on the Windows platform.
|
|/
|
|
| |
Allows compilation in newer versions of MinGW that already defined it.
|
|
|
|
| |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| |
|
| |
|
| |
|
|
|
|
| |
As requested
|
| |
|
| |
|
| |
|
| |
|