Edward Thomson
c6f26b48e4
Refactor zlib for easier deflate streaming
2014-01-14 09:45:12 -08:00
Vicent Marti
be29dd82e2
Merge pull request #2040 from scunz/cmake_msgs
...
Show informational messages during cmake run as informational
2014-01-13 06:09:51 -08:00
Vicent Marti
9dcd8cee6e
Merge pull request #2039 from brodie/brodie/handle-null-on-free
...
Fix places in public free() functions where NULL pointers aren't handled
2014-01-13 06:09:34 -08:00
Sascha Cunz
86f92b7431
Show informational messages during cmake run as informational
2014-01-13 12:49:54 +00:00
Brodie Rao
2fcc0d07d0
util: handle NULL pointers passed to git_strarray_free()
...
Signed-off-by: Brodie Rao <brodie@sf.io>
2014-01-12 23:34:09 -08:00
Brodie Rao
2ad45213a8
refs: handle NULL pointers passed to git_reference_iterator_free()
...
Signed-off-by: Brodie Rao <brodie@sf.io>
2014-01-12 23:34:05 -08:00
Brodie Rao
32b7e84ec0
oid: handle NULL pointers passed to git_oid_shorten_free()
...
Signed-off-by: Brodie Rao <brodie@sf.io>
2014-01-12 23:34:02 -08:00
Brodie Rao
ae3b6d612d
odb: handle NULL pointers passed to git_odb_stream_free
...
Signed-off-by: Brodie Rao <brodie@sf.io>
2014-01-12 23:33:59 -08:00
Brodie Rao
e3c6a1bf02
config: handle NULL pointers passed to git_config_iterator_free()
...
Signed-off-by: Brodie Rao <brodie@sf.io>
2014-01-12 23:33:56 -08:00
Brodie Rao
9eb45fc51a
branch: handle NULL pointers passed to git_branch_iterator_free()
...
Signed-off-by: Brodie Rao <brodie@sf.io>
2014-01-12 23:33:52 -08:00
Ben Straub
426d8456ea
Merge pull request #2033 from xtao/blame_orig_commit
...
Add orig_commit.
2014-01-08 19:43:31 -08:00
XTao
b92b434f5a
Add orig & final commit test.
2014-01-09 11:18:38 +08:00
Vicent Marti
cc3d961bd9
Merge pull request #2036 from ethomson/git_buf_sanitize
...
Handle git_buf's from users more liberally
2014-01-08 12:48:47 -08:00
Edward Thomson
6adcaab70c
Handle git_buf's from users more liberally
2014-01-08 10:08:23 -08:00
Vicent Marti
32309b5d82
Merge pull request #2034 from jacquesg/solaris-qsort
...
Solaris doesn't have qsort_r either
2014-01-08 04:09:09 -08:00
Jacques Germishuys
551f5cefb4
Solaris does not have qsort_r
2014-01-08 13:47:47 +02:00
XTao
a06474f81d
Add orig_commit.
2014-01-08 11:19:12 +08:00
Vicent Marti
fe959e5273
Merge pull request #2023 from arthurschreiber/patch-1
...
Add missing `git_reference_symbolic_create_with_log`.
2014-01-07 09:58:05 -08:00
nulltoken
5ce9f9b425
Merge pull request #2030 from seejohnrun/patch-1
...
Fix spelling mistake
2014-01-04 15:22:20 -08:00
John Crepezzi
e7f89b46c3
Fix spelling mistake
...
Closes #2029
2014-01-04 18:18:59 -05:00
Russell Belfer
ac9f92316b
Merge pull request #2022 from KTXSoftware/development
...
submodule branch option + little VS2013 fix
2014-01-03 14:40:25 -08:00
Vicent Marti
5f5e44652e
Merge pull request #2026 from libgit2/rb/fix-strnlen-on-old-macos
...
Use our strnlen on MacOS for backward compat
2014-01-03 13:01:14 -08:00
Russell Belfer
b49985212a
Use our strnlen on MacOS for backward compat
...
Apparently MacOS didn't have strnlen on 10.6 and earlier. To
avoid having linking problems on older versions, we'll just use
our internal version.
2014-01-03 11:37:23 -08:00
Russell Belfer
9152417290
Fix warnings with submodule changes
2014-01-02 14:30:24 -08:00
Arthur Schreiber
0b7951788c
Allow the log message to be NULL.
2014-01-02 16:58:13 +01:00
Arthur Schreiber
e5994eb02d
Add missing git_reference_symbolic_create_with_log
.
...
It's exported in the headers, but the implementation was missing.
2014-01-02 16:56:09 +01:00
Robert Konrad
1031197949
Read the submodule branch option from Git 1.8.2.
2014-01-02 15:10:32 +01:00
Robert Konrad
6014b7b59c
Fixed a compile error in VS2013.
2014-01-02 15:10:32 +01:00
Vicent Marti
f3a302ad8e
Merge pull request #2019 from linquize/recurse-on-demand
...
Accept 'submodule.*.fetchRecurseSubmodules' config 'on-demand' value
2014-01-02 05:10:04 -08:00
Vicent Marti
71223e1c4a
Merge pull request #2020 from mrshu/patch-1
...
Updated fetch.c test to pass.
2014-01-02 05:09:36 -08:00
Marek Šuppa
f38cb9815f
Updated fetch.c test to pass.
...
I am not sure why there was 6 in the first place.
2013-12-31 11:27:32 +01:00
Linquize
41ceab2522
Update test related to fetchRecurseSubmodules
2013-12-31 07:34:40 +08:00
Linquize
217fee9ae6
Default value for fetchRecurseSubmodules should be yes
2013-12-31 07:34:40 +08:00
Linquize
fccadba252
Accept 'submodule.*.fetchRecurseSubmodules' config 'on-demand' value
2013-12-31 07:34:39 +08:00
Russell Belfer
868563cc92
Merge pull request #2015 from txdv/patch-1
...
docs: Remove non existing wrapper from the readme
2013-12-30 11:41:16 -08:00
Andrius Bentkus
7b50c7845b
docs: Remove non existing wrapper from the readme
...
libgit2net stopped to exist, all hail libgit2sharp
2013-12-27 15:15:48 +02:00
Vicent Marti
4e1f517c61
Merge pull request #1920 from libgit2/cmn/ref-with-log
...
Reference operations with log
2013-12-18 09:33:45 -08:00
Vicent Marti
a7ecd1a9e3
Merge pull request #2000 from ethomson/overwrite_ignored
...
Overwrite ignored files on checkout
2013-12-13 07:29:27 -08:00
Edward Thomson
bf4a577c69
Overwrite ignored directories on checkout
2013-12-13 10:10:32 -05:00
Edward Thomson
81a2012d99
Overwrite ignored files on checkout
2013-12-13 09:29:55 -05:00
Vicent Marti
79194bcdc9
Merge pull request #1986 from libgit2/rb/error-handling-cleanups
...
Clean up some error handling and change callback error behavior
2013-12-13 06:20:19 -08:00
Vicent Marti
7a16d54b54
pool: Agh, this test doesn't really apply in 32-bit machines
...
The size_t is 32-bit already, so it overflows before going into the
function. The `-1` test should handle this gracefully in both cases
anyway.
2013-12-13 12:47:51 +01:00
Vicent Marti
437f7d69b2
pool: Correct overflow checks
...
Ok, scrap the previous commit. This is the right overflow check that
takes care of 64 bit overflow **and** 32-bit overflow, which needs to be
considered because the pool malloc can only allocate 32-bit elements in
one go.
2013-12-13 12:41:22 +01:00
Vicent Marti
ce33645ff3
pool: Cleanup error handling in pool_strdup
...
Note that `git_pool_strdup` cannot really return any error codes,
because the pool doesn't set errors on OOM.
The only place where `giterr_set_oom` is called is in
`git_pool_strndup`, in a conditional check that is always optimized
away. `n + 1` cannot be zero if `n` is unsigned because the compiler
doesn't take wraparound into account.
This check has been removed altogether because `size_t` is not
particularly going to overflow.
2013-12-13 12:25:48 +01:00
Russell Belfer
25a1fab0a9
Merge pull request #2001 from ethomson/merge_version_validate
...
Validate struct versions in merge, revert
2013-12-12 14:58:18 -08:00
Edward Thomson
86a05ef382
Validate struct versions in merge, revert
2013-12-12 17:40:40 -05:00
Russell Belfer
452c7de668
Add git_treebuilder_insert test and clarify doc
...
This wasn't being tested and since it has a callback, I fixed it
even though the return value of this callback is not treated like
any of the other callbacks in the API.
2013-12-12 14:16:40 -08:00
Russell Belfer
9cfce2735d
Cleanups, renames, and leak fixes
...
This renames git_vector_free_all to the better git_vector_free_deep
and also contains a couple of memory leak fixes based on valgrind
checks. The fixes are specifically: failure to free global dir
path variables when not compiled with threading on and failure to
free filters from the filter registry that had not be initialized
fully.
2013-12-12 12:11:38 -08:00
Russell Belfer
11bd7a034b
More tests of canceling from callbacks
...
This covers diff print, push, and ref foreach. This also has a
fix for a small memory leak in the push tests.
2013-12-12 11:14:51 -08:00
Russell Belfer
7e3ed41959
Fix up some valgrind leaks and warnings
2013-12-11 16:56:17 -08:00