]>
git.proxmox.com Git - libgit2.git/log
Carlos Martín Nieto [Tue, 7 Jul 2015 10:38:47 +0000 (12:38 +0200)]
Merge pull request #3277 from git-up/git_diff_index_to_index
Added git_diff_index_to_index()
Carlos Martín Nieto [Mon, 6 Jul 2015 22:48:17 +0000 (00:48 +0200)]
Merge pull request #3288 from ethomson/getenv
git__getenv: utf-8 aware env reader
Carlos Martín Nieto [Mon, 6 Jul 2015 17:04:48 +0000 (19:04 +0200)]
Merge pull request #3202 from jeffhostetler/windows_stack_trace
Stacktraces with CRTDBG memory leaks on Windows
Carlos Martín Nieto [Mon, 6 Jul 2015 16:42:39 +0000 (18:42 +0200)]
travis: don't install CMake on OS X
Homebrew will error out because it's already installed.
Carlos Martín Nieto [Mon, 6 Jul 2015 16:32:31 +0000 (18:32 +0200)]
travis: update the homebrew db
We need to make sure we are asking for the current version of packages,
or we might get 404s from the download service.
Carlos Martín Nieto [Mon, 6 Jul 2015 14:23:44 +0000 (16:23 +0200)]
Update CHANGELOG with the release number
Carlos Martín Nieto [Fri, 3 Jul 2015 14:29:32 +0000 (16:29 +0200)]
Merge pull request #3290 from libgit2/cmn/filter-doc
filter: add docs for streaming filters
Carlos Martín Nieto [Fri, 3 Jul 2015 12:34:30 +0000 (14:34 +0200)]
filter: add docs for streaming filters
These functions are available on the public API but don't have any
documentation, so they don't appear on the API reference. Fix that.
Carlos Martín Nieto [Thu, 2 Jul 2015 22:38:33 +0000 (00:38 +0200)]
Merge pull request #3289 from ethomson/warnings4
iterator_walk: cast away constness for free
Edward Thomson [Thu, 2 Jul 2015 14:25:48 +0000 (09:25 -0500)]
git__getenv: utf-8 aware env reader
Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere.
Make `cl_getenv` use this to keep consistent memory handling around
return values (free everywhere, as opposed to only some platforms).
Carlos Martín Nieto [Thu, 2 Jul 2015 15:55:16 +0000 (17:55 +0200)]
Merge pull request #3287 from ethomson/filter_test_cleanup
filter::stream: free the filter sanely
Edward Thomson [Thu, 2 Jul 2015 15:36:15 +0000 (10:36 -0500)]
iterator_walk: cast away constness for free
Edward Thomson [Thu, 2 Jul 2015 15:18:40 +0000 (10:18 -0500)]
filter::stream: free the filter sanely
Don't use the filter's free callback to free the actual data structure
holding the filter, as we may not always actually initialize it (the
test may be skipped).
Carlos Martín Nieto [Thu, 2 Jul 2015 06:35:05 +0000 (08:35 +0200)]
Merge pull request #3286 from libgit2/cmn/submodule-duplicate
Correctly delimit the keys for submodule lookup
Carlos Martín Nieto [Wed, 1 Jul 2015 19:15:06 +0000 (21:15 +0200)]
submodule: correctly delimit the keys to use for lookup
The regex we use to look at the gitmodules file does not correctly
delimit the name of submodule which we want to look up and puts '.*'
straight after the name, maching on any submodule which has the seeked
submodule as a prefix of its name.
Add the missing '\.' in the regex so we want a full stop to exist both
before and after the submodule name.
Carlos Martín Nieto [Wed, 1 Jul 2015 19:10:40 +0000 (21:10 +0200)]
submodule: add failing test for loading the wrong submodule
When two submodules are fairly similar, we may end up loading the wrong
one.
Edward Thomson [Wed, 1 Jul 2015 17:02:27 +0000 (12:02 -0500)]
Merge pull request #3280 from linquize/8.3
Fix 8.3 filename tests failure when 8.3 is disabled
Carlos Martín Nieto [Wed, 1 Jul 2015 15:49:07 +0000 (17:49 +0200)]
submodule: completely remove reload_all
The function was removed, but its declaration and changelog entry about
its removal were forgotten.
The comment in the test doesn't make any sense as the function doesn't
exist anymore, so get rid of it as well.
Linquize [Wed, 1 Jul 2015 06:58:13 +0000 (14:58 +0800)]
Fix 8.3 filename tests failure when 8.3 is disabled
Edward Thomson [Tue, 30 Jun 2015 22:38:22 +0000 (17:38 -0500)]
Merge pull request #3278 from mplough/master
Fix #3093 - remove declaration of unused function git_fetch__download…
Matthew Plough [Tue, 30 Jun 2015 20:48:47 +0000 (16:48 -0400)]
Fix #3093 - remove declaration of unused function git_fetch__download_pack
Function was added in commit
2c982daa2eec64b80c7940bfe1142295bd72edd8 on October 5, 2011,
and removed in commit
41fb1ca0ec51ad1d2a14b911aab3215e42965d1b on October 29, 2012.
Given the length of time it's gone unused, it's safe to remove now.
Carlos Martín Nieto [Tue, 30 Jun 2015 19:40:20 +0000 (21:40 +0200)]
Merge pull request #3273 from ethomson/warnings3
More warnings
Edward Thomson [Tue, 30 Jun 2015 18:39:07 +0000 (13:39 -0500)]
Merge pull request #3275 from git-up/http_fix
http: fixed leak when asking for credentials again
Pierre-Olivier Latour [Tue, 30 Jun 2015 16:30:20 +0000 (09:30 -0700)]
Added git_diff_index_to_index()
Pierre-Olivier Latour [Tue, 30 Jun 2015 16:03:23 +0000 (09:03 -0700)]
http: fixed leak when asking for credentials again
t->cred might have been allocated the previous time and needs to be
freed before asking caller for credentials again.
Edward Thomson [Tue, 30 Jun 2015 14:25:51 +0000 (14:25 +0000)]
index tests: add eol to avoid compiler warning
Edward Thomson [Tue, 30 Jun 2015 14:25:00 +0000 (14:25 +0000)]
checkout test: mark unused vars
Edward Thomson [Tue, 30 Jun 2015 14:23:41 +0000 (14:23 +0000)]
winhttp: remove unused var
Edward Thomson [Tue, 30 Jun 2015 14:21:29 +0000 (14:21 +0000)]
posix compat: include sys/stat.h for mingw
Edward Thomson [Tue, 30 Jun 2015 14:20:31 +0000 (14:20 +0000)]
diff: use size_t format
Edward Thomson [Tue, 30 Jun 2015 14:29:41 +0000 (09:29 -0500)]
Merge pull request #3271 from jeffhostetler/more_leaks
memory leak refspec.c
Jeff Hostetler [Mon, 29 Jun 2015 21:32:22 +0000 (17:32 -0400)]
fix memory leak in refspec.c on errors.
Carlos Martín Nieto [Tue, 30 Jun 2015 08:21:06 +0000 (10:21 +0200)]
Merge pull request #3270 from ethomson/warnings2
Remove some warnings
Edward Thomson [Mon, 29 Jun 2015 22:12:20 +0000 (22:12 +0000)]
checkout test: check getcwd return value
Edward Thomson [Mon, 29 Jun 2015 22:10:45 +0000 (22:10 +0000)]
clar: test chdir
Edward Thomson [Mon, 29 Jun 2015 21:54:06 +0000 (21:54 +0000)]
filter test: pass base type
Edward Thomson [Mon, 29 Jun 2015 21:48:35 +0000 (21:48 +0000)]
examples: clean up some warnings
Edward Thomson [Mon, 29 Jun 2015 21:45:04 +0000 (21:45 +0000)]
odb: cast to long long for printf
Edward Thomson [Mon, 29 Jun 2015 21:37:07 +0000 (21:37 +0000)]
submodule: cast enum to int for compare
Edward Thomson [Mon, 29 Jun 2015 20:29:29 +0000 (20:29 +0000)]
openssl: free hostname
Edward Thomson [Mon, 29 Jun 2015 20:21:22 +0000 (15:21 -0500)]
stash: const up conflict params
Edward Thomson [Mon, 29 Jun 2015 20:20:34 +0000 (15:20 -0500)]
index test: include repository.h for decl
Edward Thomson [Mon, 29 Jun 2015 20:17:58 +0000 (15:17 -0500)]
stash: drop unused variable
Edward Thomson [Mon, 29 Jun 2015 20:16:22 +0000 (15:16 -0500)]
iterator_walk: drop unused variable
Jeff Hostetler [Sun, 28 Jun 2015 10:56:02 +0000 (06:56 -0400)]
Reserve aux_id 0; sort leaks by aux_id. Fix cmp.
Jeff Hostetler [Tue, 9 Jun 2015 21:38:30 +0000 (14:38 -0700)]
Include stacktrace summary in memory leak output.
Edward Thomson [Mon, 29 Jun 2015 20:22:47 +0000 (15:22 -0500)]
Merge pull request #3269 from libgit2/cmn/release-fixups
Submodule and http fixes
Carlos Martín Nieto [Mon, 29 Jun 2015 19:12:44 +0000 (21:12 +0200)]
http: don't give up on auth on the first try
When the server rejects an authentication request, ask the caller for
the credentials again, instead of giving up on the first try.
Carlos Martín Nieto [Mon, 29 Jun 2015 19:10:47 +0000 (21:10 +0200)]
submodule: remove trailing slashes from submodule paths
We allow looking up a submodule by path, but we lost the path
normalisation during the recent changes. Bring it back.
Carlos Martín Nieto [Mon, 29 Jun 2015 18:54:17 +0000 (20:54 +0200)]
submodule: remove some obsolete logic
Remove some of the logic that was left-over from the time we had a cache
of submodules, plugging a leak of the submodule object in certain cases.
Carlos Martín Nieto [Mon, 29 Jun 2015 13:02:19 +0000 (15:02 +0200)]
CHANGELOG: add submodule changes
Vicent Marti [Mon, 29 Jun 2015 10:27:09 +0000 (12:27 +0200)]
Merge pull request #3268 from libgit2/vmg/pkg-config-sort
pkg-config: Sort the different sections
Vicent Marti [Mon, 29 Jun 2015 10:20:01 +0000 (12:20 +0200)]
pkg-config: Sort the different sections
Because of the fact that pkg-config is pants-on-head retarded and that
the Linux linker *requires* a static library to come before all its
dynamic dependencies in the link path, calling `pkg-config --libs
--static` was generating the wrong flags for linking.
Before this patch:
-Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/local/lib -lcurl -lssh2
-lrt -lgit2 -lssl -lcrypto -ldl -lz
After this patch:
-Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/local/lib -lgit2 -lcurl
-lssh2 -lrt -lssl -lcrypto -ldl -lz
By setting the "Libs" line before all other rules, we make sure that
`-lgit2` is the first library in the link path and that it gets its
symbols resolved with the libraries coming after it.
This fix (ab)uses an implementation detail in `pkg-config` (namely, that
flags are output as they are found on the file), but this detail seems
to be stable between releases and always gives a stable output.
Carlos Martín Nieto [Sun, 28 Jun 2015 12:53:30 +0000 (14:53 +0200)]
Bump version to 0.23.0 and SOVERSION to 23
Carlos Martín Nieto [Sun, 28 Jun 2015 12:34:30 +0000 (14:34 +0200)]
Merge pull request #3267 from libgit2/cmn/libs-list
CMake: treat the ld flags as a list
Carlos Martín Nieto [Sun, 28 Jun 2015 11:57:06 +0000 (13:57 +0200)]
CMake: treat the ld flags as a list
These are treated as a list by CMake itself, which means that treating
them as a simple string can put semicolons in our ld command-line if we
have libraries which are not installed on the standard locations.
Treat the variable as a CMake list and replace it with the space-delimited
list just before writing it out to our pc file.
Carlos Martín Nieto [Sat, 27 Jun 2015 19:26:27 +0000 (21:26 +0200)]
Merge pull request #3265 from libgit2/leaks
Plug a bunch of leaks
Carlos Martín Nieto [Sat, 27 Jun 2015 19:15:00 +0000 (21:15 +0200)]
Merge pull request #3260 from ethomson/apply_with_reflog_indices
stash: test we apply using reflog-like indices
Carlos Martín Nieto [Sat, 27 Jun 2015 18:34:04 +0000 (20:34 +0200)]
Merge pull request #3264 from arthurschreiber/fast-builds
Fast builds?
Arthur Schreiber [Sat, 27 Jun 2015 13:02:53 +0000 (15:02 +0200)]
Remove dependency installation file for travis builds.
We're installing dependencies via the APT addon now.
Arthur Schreiber [Sat, 27 Jun 2015 12:54:19 +0000 (14:54 +0200)]
Always install valgrind via the apt addon.
Carlos Martín Nieto [Fri, 26 Jun 2015 16:59:53 +0000 (18:59 +0200)]
index, iterator, fetchhead: plug leaks
Carlos Martín Nieto [Fri, 26 Jun 2015 16:49:39 +0000 (18:49 +0200)]
checkout: plug a few leaks
Carlos Martín Nieto [Fri, 26 Jun 2015 16:31:39 +0000 (18:31 +0200)]
diff: fix leaks in diff printing
Carlos Martín Nieto [Fri, 26 Jun 2015 16:11:05 +0000 (18:11 +0200)]
Merge pull request #3263 from git-up/fixes
Fixes
Arthur Schreiber [Fri, 26 Jun 2015 16:05:17 +0000 (18:05 +0200)]
Don't try to start ssh.
Arthur Schreiber [Fri, 26 Jun 2015 15:58:45 +0000 (17:58 +0200)]
Fast builds?
Edward Thomson [Thu, 25 Jun 2015 23:04:04 +0000 (19:04 -0400)]
stash: test we apply using reflog-like indices
Carlos Martín Nieto [Fri, 26 Jun 2015 15:46:35 +0000 (17:46 +0200)]
Merge pull request #3259 from ethomson/stash_apply_argh
Stash apply: stage new files even when not updating the index
Carlos Martín Nieto [Fri, 26 Jun 2015 15:45:33 +0000 (17:45 +0200)]
Merge pull request #3262 from libgit2/vmg/prefix-len
Desenfuckenate prefix lookups
Pierre-Olivier Latour [Fri, 26 Jun 2015 15:18:06 +0000 (08:18 -0700)]
Removed unused variables
Pierre-Olivier Latour [Fri, 26 Jun 2015 15:17:56 +0000 (08:17 -0700)]
Fixed build failure if GIT_CURL is not defined
Vicent Marti [Fri, 26 Jun 2015 14:52:26 +0000 (16:52 +0200)]
test-diff-blob: Pass proper nibble sizes
Vicent Marti [Fri, 26 Jun 2015 14:48:58 +0000 (16:48 +0200)]
revparse: Add test to make sure this doesn't regress
Vicent Marti [Fri, 26 Jun 2015 14:45:42 +0000 (16:45 +0200)]
Revert "object: correct the expected ID size in prefix lookup"
This reverts commit
969d4b703c910a8fd045baafbcd243b4c9825316 .
This was a fluke from Coverity. The length to all the APIs in the
library is supposed to be passed in as nibbles, not bytes. Passing it as
bytes would prevent us from parsing uneven-sized SHA1 strings.
Also, the rest of the library was still using nibbles (including
revparse and the odb_prefix APIs), so this change was seriously breaking
things in unexpected ways. ^^
Carlos Martín Nieto [Fri, 26 Jun 2015 14:05:05 +0000 (16:05 +0200)]
Merge pull request #3261 from libgit2/cmn/link-one-level
pc: Put libcurl and libssh2 in Libs.private
Carlos Martín Nieto [Fri, 26 Jun 2015 11:51:41 +0000 (13:51 +0200)]
pc: Put libcurl and libssh2 in Libs.private
Pass on to whoever wants to link to libgit2 statically the flags that we
would have used for these libraries.
Putting them in Requires.private as we do now makes pkg-config put their
dependencies in the linker arguments as well, which is not what we want.
Carlos Martín Nieto [Fri, 26 Jun 2015 09:41:14 +0000 (11:41 +0200)]
Merge pull request #3234 from ethomson/dont_update_index_unnecessarily
Dont update index unnecessarily
Pierre-Olivier Latour [Sat, 6 Jun 2015 01:26:49 +0000 (18:26 -0700)]
Only write index if updated when passing GIT_DIFF_UPDATE_INDEX
When diffing the index with the workdir and GIT_DIFF_UPDATE_INDEX has been passed,
the previous implementation was always writing the index to disk even if it wasn't
modified.
Edward Thomson [Fri, 19 Jun 2015 18:11:12 +0000 (11:11 -0700)]
diff: test we don't update index unnecessarily
Test that workdir diffs, when presented with UPDATE_INDEX, only
write the index when they actually make a change.
Edward Thomson [Thu, 25 Jun 2015 22:55:48 +0000 (18:55 -0400)]
Merge pull request #3255 from libgit2/cmn/rename-unspecified
Rename FALLBACK to UNSPECIFIED
Carlos Martín Nieto [Thu, 25 Jun 2015 22:49:28 +0000 (00:49 +0200)]
Merge pull request #3258 from arthurschreiber/patch-6
List `libcurl` in the generated `libgit2.pc`
Edward Thomson [Sat, 20 Jun 2015 23:33:15 +0000 (19:33 -0400)]
stash: stage new files when unstashing them
Files that were new (staged additions) in the stash tree should
be staged when unstashing, even when not applying the index.
Edward Thomson [Wed, 24 Jun 2015 22:10:30 +0000 (18:10 -0400)]
iterator: provide git_iterator_walk
Provide `git_iterator_walk` to walk each iterator in lockstep,
returning each iterator's idea of the contents of the next path.
Edward Thomson [Sat, 20 Jun 2015 20:44:22 +0000 (13:44 -0700)]
stash: don't allow apply with staged changes
Edward Thomson [Sat, 20 Jun 2015 00:29:59 +0000 (17:29 -0700)]
stash apply: add a newly staged file to tests
Arthur Schreiber [Thu, 25 Jun 2015 19:49:48 +0000 (21:49 +0200)]
List `libcurl` in the generated `libgit2.pc`
Edward Thomson [Thu, 25 Jun 2015 19:36:53 +0000 (15:36 -0400)]
Merge pull request #3256 from libgit2/cmn/fetch-spec-fetchhead
remote: insert refspecs with no rhs in FETCH_HEAD
Edward Thomson [Thu, 25 Jun 2015 19:26:43 +0000 (15:26 -0400)]
Merge pull request #3246 from libgit2/cmn/dont-grow-borrowed
Don't allow growing borrowed buffers
Carlos Martín Nieto [Thu, 25 Jun 2015 11:40:38 +0000 (13:40 +0200)]
remote: insert refspecs with no rhs in FETCH_HEAD
When a refspec contains no rhs and thus won't cause an explicit update,
we skip all the logic, but that means that we don't update FETCH_HEAD
with it, which is what the implicit rhs is.
Add another bit of logic which puts those remote heads in the list of
updates so we put them into FETCH_HEAD.
Carlos Martín Nieto [Thu, 25 Jun 2015 10:48:44 +0000 (12:48 +0200)]
Rename FALLBACK to UNSPECIFIED
Fallback describes the mechanism, while unspecified explains what the
user is thinking.
Carlos Martín Nieto [Wed, 24 Jun 2015 18:21:54 +0000 (20:21 +0200)]
Add CHANGELOG entries
Carlos Martín Nieto [Wed, 24 Jun 2015 17:32:56 +0000 (19:32 +0200)]
buffer: make use of EINVALID for growing a borrowed buffer
This explains more closely what happens. While here, set an error
message.
Carlos Martín Nieto [Wed, 24 Jun 2015 17:32:07 +0000 (19:32 +0200)]
errors: introduce EINVALID
We've been using EINVALIDSPEC for a while to mean this, but that name
is too specific. Introduce this to be more explicit.
Carlos Martín Nieto [Tue, 23 Jun 2015 13:21:12 +0000 (15:21 +0200)]
blob: don't recomment using git_buf_grow
We currently recommend using `git_buf_grow` in order to make a buffer
make an owned copy of the memory it points to. This is not behaviour we
should encourage, so remove this recommendation.
The function itself is not changed, as we need to remain compatible, but
it will be changed not to allow usage on borrowed buffers.
Carlos Martín Nieto [Tue, 23 Jun 2015 13:41:58 +0000 (15:41 +0200)]
buffer: don't allow growing borrowed buffers
When we don't own a buffer (asize=0) we currently allow the usage of
grow to copy the memory into a buffer we do own. This muddles the
meaning of grow, and lets us be a bit cavalier with ownership semantics.
Don't allow this any more. Usage of grow should be restricted to buffers
which we know own their own memory. If unsure, we must not attempt to
modify it.
Carlos Martín Nieto [Wed, 24 Jun 2015 21:34:40 +0000 (23:34 +0200)]
Merge pull request #3097 from libgit2/cmn/submodule-config-state
Remove run-time configuration settings from submodules
Carlos Martín Nieto [Wed, 24 Jun 2015 21:33:46 +0000 (23:33 +0200)]
Merge pull request #3183 from libgit2/cmn/curl-stream
Implement a cURL stream
Carlos Martín Nieto [Wed, 24 Jun 2015 19:13:23 +0000 (21:13 +0200)]
Merge pull request #3254 from ethomson/diff-binary-patch
Handle binary DIFFABLEness properly
Carlos Martín Nieto [Wed, 24 Jun 2015 17:47:34 +0000 (19:47 +0200)]
Merge pull request #3250 from ethomson/stash
Stash workdir correctly when added in the index, modified in the workdir