Vicent Marti
39cd01779c
This is a better name
2013-01-02 22:38:10 +01:00
Vicent Marti
a44f2e9e7b
Try it like this...
2013-01-02 22:26:34 +01:00
Vicent Marti
e229c04825
Fuck you CMake
2013-01-02 21:27:00 +01:00
Vicent Marti
0df4167577
Submodule checkout
2013-01-02 21:22:19 +01:00
Vicent Marti
a368fd0f79
Checkout test
2013-01-02 20:08:49 +01:00
Vicent Marti
5c2d3f6d5d
Add build dependency for clar. Also, fuck you CMake. Fuck you.
2013-01-02 04:19:13 +01:00
Vicent Marti
b0a4582975
Bump the Clar submodule
2013-01-02 02:05:11 +01:00
Vicent Marti
156cfec096
Cleanup Clar to make it SIMPLER
2013-01-02 02:05:11 +01:00
Vicent Martí
036e81f726
Merge pull request #1177 from arrbee/update-example-showindex
...
Update showindex example
2012-12-29 04:08:58 -08:00
Russell Belfer
dbc4aa0750
Update showindex example
...
I find the showindex example to be pretty useful on occasion, but
there were are couple of output tweaks I wanted, plus I wanted the
ability to specify a path to an actual index file instead of having
to open the whole repository. This makes those changes and expands
the example slightly.
2012-12-28 22:00:24 -08:00
Vicent Martí
3d4064a2cb
Merge pull request #1176 from arrbee/fix-iter-memleak
...
Alternative fix for iterator memory leak
2012-12-28 10:34:35 -08:00
Vicent Martí
645e67e863
Merge pull request #1171 from csware/fix-compilation-vs2012
...
Fixed compilation with =>VS2010
2012-12-28 07:18:55 -08:00
Sven Strickroth
46c2c1d538
Fixed compilation with VS >= 2010
...
Starting with VS2010 MS ships a stdint.h.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2012-12-28 13:47:13 +01:00
Russell Belfer
3865f7f661
Invalid ref name normalization leaked memory
...
When normalizing a reference name, if there is an error because
the name is invalid, then the memory allocated for storing the
name could be leaked if the caller was not careful and assumed
that the error return code meant that no allocation had occurred.
This fixes that by explicitly deallocating the reference name
buffer if there is an error in normalizing the name.
2012-12-27 23:23:12 -08:00
Russell Belfer
f616a36bdd
Make spoolandsort a pushable iterator behavior
...
An earlier change to `git_diff_from_iterators` introduced a
memory leak where the allocated spoolandsort iterator was not
returned to the caller and thus not freed.
One proposal changes all iterator APIs to use git_iterator** so
we can reallocate the iterator at will, but that seems unexpected.
This commit makes it so that an iterator can be changed in place.
The callbacks are isolated in a separate structure and a pointer
to that structure can be reassigned by the spoolandsort extension.
This means that spoolandsort doesn't create a new iterator; it
just allocates a new block of callbacks (along with space for its
own extra data) and swaps that into the iterator.
Additionally, since spoolandsort is only needed to switch the
case sensitivity of an iterator, this simplifies the API to only
take the ignore_case boolean and to be a no-op if the iterator
already matches the requested case sensitivity.
2012-12-27 22:25:52 -08:00
Vicent Martí
83261a449f
Merge pull request #1173 from nulltoken/bug/discover
...
Teach UNC paths to git_path_dirname_r()
2012-12-26 16:08:10 -08:00
nulltoken
50a762a563
path: Teach UNC paths to git_path_dirname_r()
...
Fix libgit2/libgit2sharp#256
2012-12-26 23:07:25 +01:00
nulltoken
34b6f05f39
path: enhance git_path_dirname_r() test coverage
2012-12-26 11:59:07 +01:00
Michael Schubert
7382551ff7
Fix -Wmaybe-uninitialized warning
2012-12-22 16:29:59 +01:00
Vicent Martí
2052e3c071
Merge pull request #1163 from barrbrain/check-exists-before-write
...
odb: check if object exists before writing
2012-12-21 10:32:23 -08:00
David Michael Barr
4d185dd9b0
odb: check if object exists before writing
...
Update the procondition of git_odb_backend::write.
It may now be assumed that the object has already been hashed.
2012-12-21 13:05:20 +11:00
Vicent Martí
4c10d1afeb
Merge pull request #1166 from scunz/antibiotica_for_travis
...
Mark travis build as failed if any test fails
2012-12-20 08:49:32 -08:00
Sascha Cunz
cedc15af99
Mark travis build as failed if any test fails
2012-12-20 03:51:06 +01:00
Edward Thomson
92c4d25820
Merge pull request #1138 from ethomson/fetchhead
...
fetchhead reading/iterating
2012-12-19 15:12:49 -08:00
Edward Thomson
7fcec83428
fetchhead reading/iterating
2012-12-19 16:57:30 -06:00
Vicent Martí
5c3c86b06e
Merge pull request #1150 from schu/fix-netops-ssl
...
netops: on SSL teardown only send shutdown alert
2012-12-19 13:43:50 -08:00
Vicent Marti
08a325a321
reflog: Actual error handling
2012-12-19 12:52:14 +01:00
Vicent Marti
8a810441a2
reflog: Rename error handling
2012-12-19 12:48:12 +01:00
Vicent Martí
0f7f1b1bae
Merge pull request #1159 from rick/be-consistent-be-be-consistent
...
Make `goto cleanup` more consistent
2012-12-19 10:26:54 -08:00
Vicent Martí
f7a40a82b0
Merge pull request #1162 from scunz/cmake_cleanups
...
RFC: Some cleanups/features in CMakeLists.txt
2012-12-19 10:26:01 -08:00
Vicent Martí
6b459a1ce3
Merge pull request #1164 from scunz/fixtestleak
...
Fix some leaks in tests
2012-12-19 10:25:04 -08:00
Sascha Cunz
d5cf4665a9
Fix some leaks and (possibly) dangling pointers in tests
...
Also adds some asserts.
2012-12-19 08:04:31 +01:00
Sascha Cunz
96a289f5f3
clone-empty-test: Don't use one pointer for two things
...
... so we can clean up correctly.
2012-12-19 05:24:23 +01:00
Sascha Cunz
3dc0207bc0
revwalk-test: Don't leak the second repository
2012-12-19 05:22:46 +01:00
Sascha Cunz
523a3ae5a3
MSVC: Don't list all source files in an endless list
...
Instead tell MSVC to group the source files by directory.
2012-12-19 04:57:15 +01:00
Sascha Cunz
94243295b2
DRY: Add function that adds os-specific libraries to our targets
2012-12-19 04:57:14 +01:00
Sascha Cunz
19a766a201
Collect configuration options at the top of the file
...
- Also document the -DSTDCALL even better.
2012-12-19 04:57:13 +01:00
Sascha Cunz
521479b170
DRY: Don't repeat globs for libgit2's own source files
2012-12-19 04:57:12 +01:00
Sascha Cunz
c5309eb2da
Remove special case source globs for Solaris
...
With the src/compat/*.c glob removed, there is no longer a difference to
the default globs we use for the IF( UNIX ) case.
2012-12-19 04:57:12 +01:00
Sascha Cunz
49b630086e
Remove src/compat/*.c from source globs
...
This directory doesn't exist.
2012-12-19 04:57:11 +01:00
Sascha Cunz
b53671ae85
Search for zlib unconditional
...
Up to now, on windows we don't even bother to look if the user has a zlib
available somwhere.
In almost all larger commercial projects i've participated in, it was not
at all uncommon to have such a dependency somewhere in the source tree and
use it whereever required.
Searching for it, even if it's unlikely to be present, allows for such a
scenario (i.e. by prefilling the CMake-Cache).
2012-12-19 04:57:11 +01:00
Sascha Cunz
3d007f4f9c
DRY: Scan for regex.c only in one place
2012-12-19 04:57:10 +01:00
Sascha Cunz
8d45789167
Only add deps/http-parser to include-dirs if required
2012-12-19 04:57:09 +01:00
Rick Bradley
9ec50c25a8
Make goto cleanup more consistent
...
There may be some question about whether this is likely to be needed
at all, but that's above my head at the moment.
2012-12-18 18:15:21 -06:00
Russell Belfer
9d8fa53799
Merge pull request #1158 from rick/i-do-not-think-this-means-what-you-think-it-means
...
don't deref before we've asserted
2012-12-18 15:48:17 -08:00
Rick Bradley
3a6420f378
don't deref before we've asserted
...
just sayin'.
2012-12-18 17:46:18 -06:00
Vicent Martí
25fa3ae39c
Merge pull request #1157 from rick/trivial-comment-fix
...
Trivial comment fix
2012-12-18 14:18:04 -08:00
Rick Bradley
ed4e887d1a
Also, whitespace.
...
I was totally flaunting @ben's 3-space tab advice.
2012-12-18 16:09:57 -06:00
Rick Bradley
33f169e24e
Improve comment text
...
This looked wrong to me. I *think* this is more appropriate
commentary.
2012-12-18 16:07:18 -06:00
Vicent Martí
957a3e3604
Merge pull request #1156 from scunz/another_testcrash
...
Reset global variable to NULL after free'ing resource
2012-12-18 12:07:13 -08:00