- 28 Feb, 2017 9 commits
-
-
Only use defaults for `git_futils_writebuffer` when flags == 0, lest (1 << 31) be treated as the defaults.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Add a custom `O_FSYNC` bit (if it's not been defined by the operating system`) so that `git_futils_writebuffer` can optionally do an `fsync` when it's done writing. We call `fsync` ourselves, even on systems that define `O_FSYNC` because its definition is no guarantee of its actual support. Mac, for instance, defines it but doesn't support it in an `open(2)` call.
Edward Thomson committed -
Honor `git_object__synchronized_writing` when creating a packfile and corresponding index.
Edward Thomson committed -
Introduce a simple counter that `p_fsync` implements. This is useful for ensuring that `p_fsync` is called when we expect it to be, for example when we have enabled an odb backend to perform `fsync`s when writing objects.
Edward Thomson committed -
Allow users to enable `SYNCHRONIZED_OBJECT_CREATION` with a setting.
Edward Thomson committed -
We've had an fsync option for a long time, but it was "ignored". Stop ignoring it.
Edward Thomson committed -
Edward Thomson committed
-
- 26 Feb, 2017 4 commits
-
-
tests: Add create__symbolic_with_arbitrary_content
Edward Thomson committed -
Fix minor typos in CONVENTIONS.md
Edward Thomson committed -
Fix inet_pton tests triggering an assert in Haiku
Edward Thomson committed -
Patrick Blesi committed
-
- 25 Feb, 2017 4 commits
-
-
Haiku will assert in a nightly build if the "dst" input to inet_pton() is NULL.
Kevin Wojniak committed -
Use C style comments as per style guide, and fix mismatching indentation.
Richard Ipsum committed -
This test ensures that it's possible to create a symbolic ref that has arbitrary data as its target. It also ensures it's possible to obtain the target of that symbolic reference from the git_reference object.
Richard Ipsum committed -
appveyor: don't rewrite the system mingw
Edward Thomson committed
-
- 24 Feb, 2017 3 commits
-
-
Download mingw-w64 into our build directory and execute it there, don't try to overwrite the system's mingw.
Edward Thomson committed -
The 'appveyor' branch is useful for testing AppVeyor builds.
Edward Thomson committed -
fix regression from #4092
Patrick Steinhardt committed
-
- 22 Feb, 2017 4 commits
-
-
Fixes a regression from #4092. This is a crash on 32-bit and I assume that it doesn't do the right thing on 64-bit either. MSVC emits a warning for this, but of course, it's easy to get lost among all of the similar 'possible loss of data' warnings.
Jason Haslam committed -
Attrcache cleanups
Carlos Martín Nieto committed -
Provide error on gcc < 4.1 when THREADSAFE
Carlos Martín Nieto committed -
Provide a descriptive error message when compiling THREADSAFE on gcc versions < 4.1. We require the atomic primitives (eg `__sync_synchronize`) that were introduced in that version. (Note, clang setes `__GNUC__` but appears to set its version > 4.1.)
Edward Thomson committed
-
- 21 Feb, 2017 3 commits
-
-
Remove useless indirection from `git_attr_cache__init` to `git_attr_cache__do_init`. The difference is that the `git_attr_cache__init` macro first checks if the cache is already initialized and, if so, not call `git_attr_cache__do_init`. But actually, `git_attr_cache__do_init` already does the same thing and returns immediately if the cache is already initialized. Remove the indirection.
Patrick Steinhardt committed -
When doing an upsert of a file, we used to use `git__compare_and_swap`, comparing the entry's file which is to be replaced with itself. This can be more easily formulated by using `git__swap`, which unconditionally replaces the value.
Patrick Steinhardt committed -
Improve encapsulation by not referencing the attrcache mutex directly but instead using the `attr_cache_lock` and `attr_cache_unlock` functions.
Patrick Steinhardt committed
-
- 17 Feb, 2017 13 commits
-
-
Improve clar messages
Edward Thomson committed -
Edward Thomson committed
-
Provide more detailed messages when conditions pass or fail unexpectedly. In particular, this provides the error messages when a test fails with a different error code than was expected.
Edward Thomson committed -
`snprintf` requires a _format_ but does not require _arguments_ to the format. eg: `snprintf(buf, 42, "hi")` is perfectly legal. Expand the macro to match. Without this, `p_sprintf(buf, 42, "hi")` errors with: ``` error: expected expression p_snprintf(msg, 42, "hi"); ^ src/unix/posix.h:53:34: note: expanded from macro 'p_snprintf' ^ /usr/include/secure/_stdio.h:57:73: note: expanded from macro 'snprintf' __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__) ```
Edward Thomson committed -
khash cleanups
Patrick Steinhardt committed -
Patrick Steinhardt committed
-
Patrick Steinhardt committed
-
Patrick Steinhardt committed
-
Patrick Steinhardt committed
-
Patrick Steinhardt committed
-
Patrick Steinhardt committed
-
Patrick Steinhardt committed
-
Patrick Steinhardt committed
-