]> git.proxmox.com Git - libgit2.git/log
libgit2.git
9 years agoindex: allow add_bypath to update submodules
Carlos Martín Nieto [Sat, 11 Jul 2015 17:41:03 +0000 (19:41 +0200)]
index: allow add_bypath to update submodules

Similarly to how git itself does it, allow the index update operation to
stage a change in a submodule's HEAD.

9 years agoblob: fail to create a blob from a dir with EDIRECTORY
Carlos Martín Nieto [Sat, 11 Jul 2015 17:03:38 +0000 (19:03 +0200)]
blob: fail to create a blob from a dir with EDIRECTORY

This also affects `git_index_add_bypath()` by providing a better error
message and a specific error code when a directory is passed.

9 years agoerrors: add EDIRECTORY
Carlos Martín Nieto [Sat, 11 Jul 2015 16:51:36 +0000 (18:51 +0200)]
errors: add EDIRECTORY

This is to be returned when the operation which the user asked for is
not possible to do on a directory.

9 years agoMerge pull request #3292 from tkelman/patch-1
Edward Thomson [Sat, 11 Jul 2015 22:35:59 +0000 (17:35 -0500)]
Merge pull request #3292 from tkelman/patch-1

Increase required version of cmake to 2.8

9 years agoIncrease required version of cmake to 2.8
Tony Kelman [Sun, 5 Jul 2015 14:07:48 +0000 (10:07 -0400)]
Increase required version of cmake to 2.8

9 years agoMerge pull request #3301 from ethomson/warnings
Carlos Martín Nieto [Fri, 10 Jul 2015 17:32:04 +0000 (19:32 +0200)]
Merge pull request #3301 from ethomson/warnings

Clean up some warnings

9 years agoMerge pull request #3297 from tkelman/patch-2
Carlos Martín Nieto [Fri, 10 Jul 2015 17:07:41 +0000 (19:07 +0200)]
Merge pull request #3297 from tkelman/patch-2

Fix undefined reference with old versions of openssl

9 years agoMerge pull request #3272 from ethomson/cert
Carlos Martín Nieto [Fri, 10 Jul 2015 16:36:53 +0000 (18:36 +0200)]
Merge pull request #3272 from ethomson/cert

git_cert: child types use proper base type

9 years agokhash: add eol so picky compilers stop warning
Edward Thomson [Tue, 30 Jun 2015 13:41:01 +0000 (13:41 +0000)]
khash: add eol so picky compilers stop warning

9 years agowildcard filters: move CHANGELOG message to 0.23+1
Edward Thomson [Fri, 10 Jul 2015 14:25:45 +0000 (09:25 -0500)]
wildcard filters: move CHANGELOG message to 0.23+1

9 years agowildcard filters: clean up some warnings in tests
Edward Thomson [Fri, 10 Jul 2015 14:25:20 +0000 (09:25 -0500)]
wildcard filters: clean up some warnings in tests

9 years agoxdiff: cleanup some warnings
Edward Thomson [Fri, 10 Jul 2015 14:21:59 +0000 (09:21 -0500)]
xdiff: cleanup some warnings

9 years agogit_cert: child types use proper base type
Edward Thomson [Mon, 29 Jun 2015 22:51:18 +0000 (22:51 +0000)]
git_cert: child types use proper base type

9 years agoMerge pull request #3281 from ethomson/wildcard_filters
Carlos Martín Nieto [Thu, 9 Jul 2015 16:21:31 +0000 (18:21 +0200)]
Merge pull request #3281 from ethomson/wildcard_filters

filters: custom filters with wildcard attributes

9 years agoMerge pull request #3299 from ethomson/xdiff_update
Carlos Martín Nieto [Wed, 8 Jul 2015 19:17:56 +0000 (21:17 +0200)]
Merge pull request #3299 from ethomson/xdiff_update

Don't add unnecessary trailing newline during file merge

9 years agoxdiff: upgrade to core git 2.4.5
Edward Thomson [Tue, 7 Jul 2015 21:46:48 +0000 (16:46 -0500)]
xdiff: upgrade to core git 2.4.5

Upgrade xdiff to version used in core git 2.4.5 (0df0541).

Corrects an issue where an LF is added at EOF while applying
an unrelated change (ba31180), cleans up some unused code (be89977 and
e5b0662), and provides an improved callback to avoid leaking internal
(to xdiff) structures (467d348).

This also adds some additional functionality that we do not yet take
advantage of, namely the ability to ignore changes whose lines are
all blank (36617af).

9 years agorevert: correct test that added trailing newline
Edward Thomson [Tue, 7 Jul 2015 21:46:20 +0000 (16:46 -0500)]
revert: correct test that added trailing newline

9 years agomerge_files: don't add trailing newlines
Edward Thomson [Tue, 7 Jul 2015 21:59:14 +0000 (16:59 -0500)]
merge_files: don't add trailing newlines

When invoked with three files that each lack a trailing newline,
the merge result should also lack a trailing newline.

9 years agoMerge pull request #3298 from ethomson/gitauthors
Edward Thomson [Tue, 7 Jul 2015 21:55:32 +0000 (16:55 -0500)]
Merge pull request #3298 from ethomson/gitauthors

meta: Add Antoine Pelisse to hall-of-fame list

9 years agometa: Add Antoine Pelisse to hall-of-fame list
Edward Thomson [Tue, 7 Jul 2015 17:40:15 +0000 (12:40 -0500)]
meta: Add Antoine Pelisse to hall-of-fame list

Antoine Pelisse <apelisse@gmail.com> has kindly allowed his
contributions to core git to be used under the libgit2 license.

9 years agoFix undefined reference with old versions of openssl
Tony Kelman [Tue, 7 Jul 2015 10:55:05 +0000 (06:55 -0400)]
Fix undefined reference with old versions of openssl

Versions prior to 0.9.8f  did not have this function, rhel/centos5 are still on a
heavily backported version of 0.9.8e and theoretically supported until March 2017

Without this ifdef, I get the following link failure:
```
CMakeFiles/libgit2_clar.dir/src/openssl_stream.c.o: In function `openssl_connect':
openssl_stream.c:(.text+0x45a): undefined reference to `SSL_set_tlsext_host_name'
collect2: error: ld returned 1 exit status
make[6]: *** [libgit2_clar] Error 1
```

9 years agoMerge pull request #3277 from git-up/git_diff_index_to_index
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()

9 years agoMerge pull request #3288 from ethomson/getenv
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

9 years agoMerge pull request #3202 from jeffhostetler/windows_stack_trace
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

9 years agotravis: don't install CMake on OS X
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.

9 years agotravis: update the homebrew db
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.

9 years agoUpdate CHANGELOG with the release number
Carlos Martín Nieto [Mon, 6 Jul 2015 14:23:44 +0000 (16:23 +0200)]
Update CHANGELOG with the release number

9 years agoMerge pull request #3290 from libgit2/cmn/filter-doc
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

9 years agofilter: 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.

9 years agoMerge pull request #3289 from ethomson/warnings4
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

9 years agogit__getenv: utf-8 aware env reader
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).

9 years agoMerge pull request #3287 from ethomson/filter_test_cleanup
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

9 years agoiterator_walk: cast away constness for free
Edward Thomson [Thu, 2 Jul 2015 15:36:15 +0000 (10:36 -0500)]
iterator_walk: cast away constness for free

9 years agofilter::stream: free the filter sanely
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).

9 years agoMerge pull request #3286 from libgit2/cmn/submodule-duplicate
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

9 years agosubmodule: correctly delimit the keys to use for 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.

9 years agosubmodule: add failing test for loading the wrong submodule
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.

9 years agoMerge pull request #3280 from linquize/8.3
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

9 years agosubmodule: completely remove reload_all
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.

9 years agofilters: custom filters with wildcard attributes
Edward Thomson [Wed, 1 Jul 2015 14:40:11 +0000 (09:40 -0500)]
filters: custom filters with wildcard attributes

Allow custom filters with wildcard attributes, so that clients
can support some random `filter=foo` in a .gitattributes and look
up the corresponding smudge/clean commands in the configuration file.

9 years agoFix 8.3 filename tests failure when 8.3 is disabled
Linquize [Wed, 1 Jul 2015 06:58:13 +0000 (14:58 +0800)]
Fix 8.3 filename tests failure when 8.3 is disabled

9 years agoMerge pull request #3278 from mplough/master
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…

9 years agoFix #3093 - remove declaration of unused function git_fetch__download_pack
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.

9 years agoMerge pull request #3273 from ethomson/warnings3
Carlos Martín Nieto [Tue, 30 Jun 2015 19:40:20 +0000 (21:40 +0200)]
Merge pull request #3273 from ethomson/warnings3

More warnings

9 years agoMerge pull request #3275 from git-up/http_fix
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

9 years agoAdded git_diff_index_to_index()
Pierre-Olivier Latour [Tue, 30 Jun 2015 16:30:20 +0000 (09:30 -0700)]
Added git_diff_index_to_index()

9 years agohttp: fixed leak when asking for credentials again
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.

9 years agoindex tests: add eol to avoid compiler warning
Edward Thomson [Tue, 30 Jun 2015 14:25:51 +0000 (14:25 +0000)]
index tests: add eol to avoid compiler warning

9 years agocheckout test: mark unused vars
Edward Thomson [Tue, 30 Jun 2015 14:25:00 +0000 (14:25 +0000)]
checkout test: mark unused vars

9 years agowinhttp: remove unused var
Edward Thomson [Tue, 30 Jun 2015 14:23:41 +0000 (14:23 +0000)]
winhttp: remove unused var

9 years agoposix compat: include sys/stat.h for mingw
Edward Thomson [Tue, 30 Jun 2015 14:21:29 +0000 (14:21 +0000)]
posix compat: include sys/stat.h for mingw

9 years agodiff: use size_t format
Edward Thomson [Tue, 30 Jun 2015 14:20:31 +0000 (14:20 +0000)]
diff: use size_t format

9 years agoMerge pull request #3271 from jeffhostetler/more_leaks
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

9 years agofix memory leak in refspec.c on errors.
Jeff Hostetler [Mon, 29 Jun 2015 21:32:22 +0000 (17:32 -0400)]
fix memory leak in refspec.c on errors.

9 years agoMerge pull request #3270 from ethomson/warnings2
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

9 years agocheckout test: check getcwd return value
Edward Thomson [Mon, 29 Jun 2015 22:12:20 +0000 (22:12 +0000)]
checkout test: check getcwd return value

9 years agoclar: test chdir
Edward Thomson [Mon, 29 Jun 2015 22:10:45 +0000 (22:10 +0000)]
clar: test chdir

9 years agofilter test: pass base type
Edward Thomson [Mon, 29 Jun 2015 21:54:06 +0000 (21:54 +0000)]
filter test: pass base type

9 years agoexamples: clean up some warnings
Edward Thomson [Mon, 29 Jun 2015 21:48:35 +0000 (21:48 +0000)]
examples: clean up some warnings

9 years agoodb: cast to long long for printf
Edward Thomson [Mon, 29 Jun 2015 21:45:04 +0000 (21:45 +0000)]
odb: cast to long long for printf

9 years agosubmodule: cast enum to int for compare
Edward Thomson [Mon, 29 Jun 2015 21:37:07 +0000 (21:37 +0000)]
submodule: cast enum to int for compare

9 years agoopenssl: free hostname
Edward Thomson [Mon, 29 Jun 2015 20:29:29 +0000 (20:29 +0000)]
openssl: free hostname

9 years agostash: const up conflict params
Edward Thomson [Mon, 29 Jun 2015 20:21:22 +0000 (15:21 -0500)]
stash: const up conflict params

9 years agoindex test: include repository.h for decl
Edward Thomson [Mon, 29 Jun 2015 20:20:34 +0000 (15:20 -0500)]
index test: include repository.h for decl

9 years agostash: drop unused variable
Edward Thomson [Mon, 29 Jun 2015 20:17:58 +0000 (15:17 -0500)]
stash: drop unused variable

9 years agoiterator_walk: drop unused variable
Edward Thomson [Mon, 29 Jun 2015 20:16:22 +0000 (15:16 -0500)]
iterator_walk: drop unused variable

9 years agoReserve aux_id 0; sort leaks by aux_id. Fix cmp.
Jeff Hostetler [Sun, 28 Jun 2015 10:56:02 +0000 (06:56 -0400)]
Reserve aux_id 0; sort leaks by aux_id. Fix cmp.

9 years agoInclude stacktrace summary in memory leak output.
Jeff Hostetler [Tue, 9 Jun 2015 21:38:30 +0000 (14:38 -0700)]
Include stacktrace summary in memory leak output.

9 years agoMerge pull request #3269 from libgit2/cmn/release-fixups
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

9 years agohttp: don't give up on auth on the first try
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.

9 years agosubmodule: remove trailing slashes from submodule paths
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.

9 years agosubmodule: remove some obsolete logic
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.

9 years agoCHANGELOG: add submodule changes
Carlos Martín Nieto [Mon, 29 Jun 2015 13:02:19 +0000 (15:02 +0200)]
CHANGELOG: add submodule changes

9 years agoMerge pull request #3268 from libgit2/vmg/pkg-config-sort
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

9 years agopkg-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.

9 years agoBump version to 0.23.0 and SOVERSION to 23
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

9 years agoMerge pull request #3267 from libgit2/cmn/libs-list
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

9 years agoCMake: 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.

9 years agoMerge pull request #3265 from libgit2/leaks
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

9 years agoMerge pull request #3260 from ethomson/apply_with_reflog_indices
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

9 years agoMerge pull request #3264 from arthurschreiber/fast-builds
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?

9 years agoRemove dependency installation file for travis 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.

9 years agoAlways install valgrind via the apt addon.
Arthur Schreiber [Sat, 27 Jun 2015 12:54:19 +0000 (14:54 +0200)]
Always install valgrind via the apt addon.

9 years agoindex, iterator, fetchhead: plug leaks
Carlos Martín Nieto [Fri, 26 Jun 2015 16:59:53 +0000 (18:59 +0200)]
index, iterator, fetchhead: plug leaks

9 years agocheckout: plug a few leaks
Carlos Martín Nieto [Fri, 26 Jun 2015 16:49:39 +0000 (18:49 +0200)]
checkout: plug a few leaks

9 years agodiff: fix leaks in diff printing
Carlos Martín Nieto [Fri, 26 Jun 2015 16:31:39 +0000 (18:31 +0200)]
diff: fix leaks in diff printing

9 years agoMerge pull request #3263 from git-up/fixes
Carlos Martín Nieto [Fri, 26 Jun 2015 16:11:05 +0000 (18:11 +0200)]
Merge pull request #3263 from git-up/fixes

Fixes

9 years agoDon't try to start ssh.
Arthur Schreiber [Fri, 26 Jun 2015 16:05:17 +0000 (18:05 +0200)]
Don't try to start ssh.

9 years agoFast builds?
Arthur Schreiber [Fri, 26 Jun 2015 15:58:45 +0000 (17:58 +0200)]
Fast builds?

9 years agostash: test we apply using reflog-like indices
Edward Thomson [Thu, 25 Jun 2015 23:04:04 +0000 (19:04 -0400)]
stash: test we apply using reflog-like indices

9 years agoMerge pull request #3259 from ethomson/stash_apply_argh
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

9 years agoMerge pull request #3262 from libgit2/vmg/prefix-len
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

9 years agoRemoved unused variables
Pierre-Olivier Latour [Fri, 26 Jun 2015 15:18:06 +0000 (08:18 -0700)]
Removed unused variables

9 years agoFixed build failure if GIT_CURL is not defined
Pierre-Olivier Latour [Fri, 26 Jun 2015 15:17:56 +0000 (08:17 -0700)]
Fixed build failure if GIT_CURL is not defined

9 years agotest-diff-blob: Pass proper nibble sizes
Vicent Marti [Fri, 26 Jun 2015 14:52:26 +0000 (16:52 +0200)]
test-diff-blob: Pass proper nibble sizes

9 years agorevparse: Add test to make sure this doesn't regress
Vicent Marti [Fri, 26 Jun 2015 14:48:58 +0000 (16:48 +0200)]
revparse: Add test to make sure this doesn't regress

9 years agoRevert "object: correct the expected ID size in prefix lookup"
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. ^^

9 years agoMerge pull request #3261 from libgit2/cmn/link-one-level
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

9 years agopc: 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.

9 years agoMerge pull request #3234 from ethomson/dont_update_index_unnecessarily
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