]> git.proxmox.com Git - libgit2.git/log
libgit2.git
10 years agoMerge pull request #2000 from ethomson/overwrite_ignored
Vicent Marti [Fri, 13 Dec 2013 15:29:27 +0000 (07:29 -0800)]
Merge pull request #2000 from ethomson/overwrite_ignored

Overwrite ignored files on checkout

10 years agoOverwrite ignored directories on checkout
Edward Thomson [Fri, 13 Dec 2013 15:10:32 +0000 (10:10 -0500)]
Overwrite ignored directories on checkout

10 years agoOverwrite ignored files on checkout
Edward Thomson [Thu, 12 Dec 2013 16:30:50 +0000 (11:30 -0500)]
Overwrite ignored files on checkout

10 years agoMerge pull request #1986 from libgit2/rb/error-handling-cleanups
Vicent Marti [Fri, 13 Dec 2013 14:20:19 +0000 (06:20 -0800)]
Merge pull request #1986 from libgit2/rb/error-handling-cleanups

Clean up some error handling and change callback error behavior

10 years agopool: Agh, this test doesn't really apply in 32-bit machines
Vicent Marti [Fri, 13 Dec 2013 11:47:51 +0000 (12:47 +0100)]
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.

10 years agopool: Correct overflow checks
Vicent Marti [Fri, 13 Dec 2013 11:41:22 +0000 (12:41 +0100)]
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.

10 years agopool: Cleanup error handling in pool_strdup
Vicent Marti [Fri, 13 Dec 2013 11:25:48 +0000 (12:25 +0100)]
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.

10 years agoMerge pull request #2001 from ethomson/merge_version_validate
Russell Belfer [Thu, 12 Dec 2013 22:58:18 +0000 (14:58 -0800)]
Merge pull request #2001 from ethomson/merge_version_validate

Validate struct versions in merge, revert

10 years agoValidate struct versions in merge, revert
Edward Thomson [Thu, 12 Dec 2013 22:40:40 +0000 (17:40 -0500)]
Validate struct versions in merge, revert

10 years agoAdd git_treebuilder_insert test and clarify doc
Russell Belfer [Thu, 12 Dec 2013 22:16:40 +0000 (14:16 -0800)]
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.

10 years agoCleanups, renames, and leak fixes
Russell Belfer [Thu, 12 Dec 2013 20:11:38 +0000 (12:11 -0800)]
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.

10 years agoMore tests of canceling from callbacks
Russell Belfer [Thu, 12 Dec 2013 19:14:51 +0000 (11:14 -0800)]
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.

10 years agoFix up some valgrind leaks and warnings
Russell Belfer [Thu, 12 Dec 2013 00:56:17 +0000 (16:56 -0800)]
Fix up some valgrind leaks and warnings

10 years agoTest cancel from indexer progress callback
Russell Belfer [Wed, 11 Dec 2013 23:02:20 +0000 (15:02 -0800)]
Test cancel from indexer progress callback

This adds tests that try canceling an indexer operation from
within the progress callback.

After writing the tests, I wanted to run this under valgrind and
had a number of errors in that situation because mmap wasn't
working.  I added a CMake option to force emulation of mmap and
consolidated the Amiga-specific code into that new place (so we
don't actually need separate Amiga code now, just have to turn on
-DNO_MMAP).

Additionally, I made the indexer code propagate error codes more
reliably than it used to.

10 years agoMore improvements to callback return value tests
Russell Belfer [Wed, 11 Dec 2013 19:55:00 +0000 (11:55 -0800)]
More improvements to callback return value tests

This time actually checking return values in diff notify tests and
actually testing callbacks for the index all-all/update-all/etc
functions.

10 years agoTry a test that won't assert on Linux
Russell Belfer [Wed, 11 Dec 2013 00:16:36 +0000 (16:16 -0800)]
Try a test that won't assert on Linux

10 years agoUpdate clone doc and tests for callback return val
Russell Belfer [Wed, 11 Dec 2013 00:02:24 +0000 (16:02 -0800)]
Update clone doc and tests for callback return val

Clone callbacks can return non-zero values to cancel the clone.
This adds some tests to verify that this actually works and updates
the documentation to be clearer that this can happen and that the
return value will be propagated back by the clone function.

10 years agoFix checkout notify callback docs and tests
Russell Belfer [Tue, 10 Dec 2013 22:38:35 +0000 (14:38 -0800)]
Fix checkout notify callback docs and tests

The checkout notify callback behavior on non-zero return values
was not being tested.  This adds tests, fixes a bug with positive
values, and clarifies the documentation to make it clear that the
checkout can be canceled via this mechanism.

10 years agoUpdate git_blob_create_fromchunks callback behavr
Russell Belfer [Tue, 10 Dec 2013 21:01:34 +0000 (13:01 -0800)]
Update git_blob_create_fromchunks callback behavr

The callback to supply data chunks could return a negative value
to stop creation of the blob, but we were neither using GIT_EUSER
nor propagating the return value.  This makes things use the new
behavior of returning the negative value back to the user.

10 years agoUpdate docs for new callback return value behavior
Russell Belfer [Mon, 9 Dec 2013 18:17:47 +0000 (10:17 -0800)]
Update docs for new callback return value behavior

10 years agoOne more rename/cleanup for callback err functions
Russell Belfer [Mon, 9 Dec 2013 17:44:03 +0000 (09:44 -0800)]
One more rename/cleanup for callback err functions

10 years agoFurther callback error check style fixes
Russell Belfer [Fri, 6 Dec 2013 23:53:26 +0000 (15:53 -0800)]
Further callback error check style fixes

Okay, I've decided I like the readability of this style much
better so I used it everywhere.

10 years agoSome callback error check style cleanups
Russell Belfer [Fri, 6 Dec 2013 23:42:20 +0000 (15:42 -0800)]
Some callback error check style cleanups

I find this easier to read...

10 years agoFix C99 __func__ for MSVC
Russell Belfer [Fri, 6 Dec 2013 23:20:41 +0000 (15:20 -0800)]
Fix C99 __func__ for MSVC

10 years agoRemove converting user error to GIT_EUSER
Russell Belfer [Fri, 6 Dec 2013 23:07:57 +0000 (15:07 -0800)]
Remove converting user error to GIT_EUSER

This changes the behavior of callbacks so that the callback error
code is not converted into GIT_EUSER and instead we propagate the
return value through to the caller.  Instead of using the
giterr_capture and giterr_restore functions, we now rely on all
functions to pass back the return value from a callback.

To avoid having a return value with no error message, the user
can call the public giterr_set_str or some such function to set
an error message.  There is a new helper 'giterr_set_callback'
that functions can invoke after making a callback which ensures
that some error message was set in case the callback did not set
one.

In places where the sign of the callback return value is
meaningful (e.g. positive to skip, negative to abort), only the
negative values are returned back to the caller, obviously, since
the other values allow for continuing the loop.

The hardest parts of this were in the checkout code where positive
return values were overloaded as meaningful values for checkout.
I fixed this by adding an output parameter to many of the internal
checkout functions and removing the overload.  This added some
code, but it is probably a better implementation.

There is some funkiness in the network code where user provided
callbacks could be returning a positive or a negative value and
we want to rely on that to cancel the loop.  There are still a
couple places where an user error might get turned into GIT_EUSER
there, I think, though none exercised by the tests.

10 years agoAdd git_vector_free_all
Russell Belfer [Fri, 6 Dec 2013 23:04:31 +0000 (15:04 -0800)]
Add git_vector_free_all

There are a lot of places that we call git__free on each item in
a vector and then call git_vector_free on the vector itself.  This
just wraps that up into one convenient helper function.

10 years agoFurther EUSER and error propagation fixes
Russell Belfer [Thu, 5 Dec 2013 05:22:57 +0000 (21:22 -0800)]
Further EUSER and error propagation fixes

This continues auditing all the places where GIT_EUSER is being
returned and making sure to clear any existing error using the
new giterr_user_cancel helper.  As a result, places that relied
on intercepting GIT_EUSER but having the old error preserved also
needed to be cleaned up to correctly stash and then retrieve the
actual error.

Additionally, as I encountered places where error codes were not
being propagated correctly, I tried to fix them up.  A number of
those fixes are included in the this commit as well.

10 years agoImprove GIT_EUSER handling
Russell Belfer [Wed, 4 Dec 2013 00:45:39 +0000 (16:45 -0800)]
Improve GIT_EUSER handling

This adds giterr_user_cancel to return GIT_EUSER and clear any
error message that is sitting around.  As a result of using that
in places, we need to be more thorough with capturing errors that
happen inside a callback when used internally.  To help with that,
this also adds giterr_capture and giterr_restore so that when we
internally use a foreach-type function that clears errors and
converts them to GIT_EUSER, it is easier to restore not just the
return value, but the actual error message text.

10 years agoAdd config read fns with controlled error behavior
Russell Belfer [Mon, 25 Nov 2013 22:21:34 +0000 (14:21 -0800)]
Add config read fns with controlled error behavior

This adds `git_config__lookup_entry` which will look up a key in
a config and return either the entry or NULL if the key was not
present.  Optionally, it can either suppress all errors or can
return them (although not finding the key is not an error for this
function).  Unlike other accessors, this does not normalize the
config key string, so it must only be used when the key is known
to be in normalized form (i.e. all lower-case before the first dot
and after the last dot, with no invalid characters).

This also adds three high-level helper functions to look up config
values with no errors and a fallback value.  The three functions
are for string, bool, and int values, and will resort to the
fallback value for any error that arises.  They are:

* `git_config__get_string_force`
* `git_config__get_bool_force`
* `git_config__get_int_force`

None of them normalize the config `key` either, so they can only
be used for internal cases where the key is known to be in normal
format.

10 years agoMerge pull request #1985 from libgit2/diff-rename-config
Russell Belfer [Wed, 11 Dec 2013 18:39:36 +0000 (10:39 -0800)]
Merge pull request #1985 from libgit2/diff-rename-config

Rename detection using diff.renames

10 years agoCheck version earlier
Ben Straub [Wed, 11 Dec 2013 14:43:17 +0000 (06:43 -0800)]
Check version earlier

10 years agoMerge pull request #1996 from ethomson/warnings
Vicent Marti [Mon, 9 Dec 2013 16:55:00 +0000 (08:55 -0800)]
Merge pull request #1996 from ethomson/warnings

Clean up warnings

10 years agoClean up warnings
Edward Thomson [Mon, 9 Dec 2013 15:25:36 +0000 (10:25 -0500)]
Clean up warnings

10 years agoMerge pull request #1994 from palistov/commit-cleanup
Edward Thomson [Sun, 8 Dec 2013 20:36:48 +0000 (12:36 -0800)]
Merge pull request #1994 from palistov/commit-cleanup

commit: Fix potential segfault

10 years agocommit: Fix potential segfault in git_commit_message
Paul Holden [Sun, 8 Dec 2013 10:03:05 +0000 (02:03 -0800)]
commit: Fix potential segfault in git_commit_message

Dereferencing commit pointer before asserting

10 years agoMerge pull request #1993 from jaredlwong/development
Vicent Marti [Sun, 8 Dec 2013 14:43:52 +0000 (06:43 -0800)]
Merge pull request #1993 from jaredlwong/development

Fixed left shift size of int.

10 years agoFixed left shift size of int.
Jared Wong [Sun, 8 Dec 2013 09:50:10 +0000 (01:50 -0800)]
Fixed left shift size of int.

Simply switched the ordering of the checks in the for loop where this left
shift was being made.

10 years agoClarify docs
Ben Straub [Fri, 6 Dec 2013 21:39:08 +0000 (13:39 -0800)]
Clarify docs

10 years agoDon't clobber whitespace settings
Ben Straub [Fri, 6 Dec 2013 21:38:59 +0000 (13:38 -0800)]
Don't clobber whitespace settings

10 years agoClarify default value and behavior
Ben Straub [Fri, 6 Dec 2013 17:32:09 +0000 (09:32 -0800)]
Clarify default value and behavior

10 years agoMerge pull request #1989 from palistov/blame-cleanup
Vicent Martí [Fri, 6 Dec 2013 12:29:59 +0000 (04:29 -0800)]
Merge pull request #1989 from palistov/blame-cleanup

blame.c: Remove unnecessary error-check and goto

10 years agoblame.c: Remove unnecessary error-check and goto
Paul Holden [Fri, 6 Dec 2013 04:41:12 +0000 (20:41 -0800)]
blame.c: Remove unnecessary error-check and goto

In private function 'load_blob'.

10 years agoDon't use weird return codes
Ben Straub [Thu, 5 Dec 2013 22:47:04 +0000 (14:47 -0800)]
Don't use weird return codes

10 years agoImplement GIT_DIFF_FIND_BY_CONFIG
Ben Straub [Thu, 5 Dec 2013 22:13:46 +0000 (14:13 -0800)]
Implement GIT_DIFF_FIND_BY_CONFIG

10 years agoMerge pull request #1988 from mgbowen/fix-libssh2-windows
Vicent Martí [Thu, 5 Dec 2013 16:43:29 +0000 (08:43 -0800)]
Merge pull request #1988 from mgbowen/fix-libssh2-windows

Fixed compilation on Windows when using libssh2.

10 years agoFixed compilation on Windows when using libssh2.
mgbowen [Thu, 5 Dec 2013 16:13:58 +0000 (11:13 -0500)]
Fixed compilation on Windows when using libssh2.

10 years agoIntroduce GIT_DIFF_FIND_BY_CONFIG
Ben Straub [Wed, 4 Dec 2013 23:17:39 +0000 (15:17 -0800)]
Introduce GIT_DIFF_FIND_BY_CONFIG

10 years agoMerge pull request #1984 from ethomson/revert_fix
Edward Thomson [Tue, 3 Dec 2013 16:03:56 +0000 (08:03 -0800)]
Merge pull request #1984 from ethomson/revert_fix

Reorder revert test variable decls

10 years agoReorder var decls in revert test
Edward Thomson [Tue, 3 Dec 2013 15:47:18 +0000 (10:47 -0500)]
Reorder var decls in revert test

Oh, MSVC.

10 years agoMerge pull request #1983 from ethomson/revert
Vicent Martí [Tue, 3 Dec 2013 15:40:30 +0000 (07:40 -0800)]
Merge pull request #1983 from ethomson/revert

Bare naked merge and rebase

10 years agoBare naked merge and rebase
Edward Thomson [Mon, 2 Dec 2013 19:10:04 +0000 (14:10 -0500)]
Bare naked merge and rebase

10 years agoMerge pull request #1982 from linquize/revert.h
Vicent Martí [Tue, 3 Dec 2013 15:05:52 +0000 (07:05 -0800)]
Merge pull request #1982 from linquize/revert.h

Include git2/revert.h in git2.h

10 years agoInclude git2/revert.h in git2.h
Linquize [Tue, 3 Dec 2013 15:00:50 +0000 (23:00 +0800)]
Include git2/revert.h in git2.h

10 years agoMerge pull request #1981 from jamill/download_cancel_tweaks
Vicent Martí [Tue, 3 Dec 2013 10:14:28 +0000 (02:14 -0800)]
Merge pull request #1981 from jamill/download_cancel_tweaks

Updates to cancellation logic during download and indexing of packfile.

10 years agoMerge pull request #1977 from ethomson/revert
Vicent Martí [Tue, 3 Dec 2013 10:11:55 +0000 (02:11 -0800)]
Merge pull request #1977 from ethomson/revert

Revert support for a single commit

10 years agoUpdates to cancellation logic during download and indexing of packfile.
Jameson Miller [Mon, 2 Dec 2013 19:09:12 +0000 (14:09 -0500)]
Updates to cancellation logic during download and indexing of packfile.

10 years agoclean up state metadata more consistently
Edward Thomson [Fri, 22 Nov 2013 23:02:12 +0000 (18:02 -0500)]
clean up state metadata more consistently

10 years agoIntroduce git_revert to revert a single commit
Edward Thomson [Mon, 2 Dec 2013 16:15:27 +0000 (11:15 -0500)]
Introduce git_revert to revert a single commit

10 years agoMerge pull request #1979 from libgit2/rb/diff-find-delete-unmod
Vicent Martí [Mon, 2 Dec 2013 21:56:28 +0000 (13:56 -0800)]
Merge pull request #1979 from libgit2/rb/diff-find-delete-unmod

Add GIT_DIFF_FIND_REMOVE_UNMODIFIED flag and fix copy detection bug

10 years agoGIT_DIFF_FIND_REMOVE_UNMODIFIED sounds better
Russell Belfer [Mon, 2 Dec 2013 21:49:58 +0000 (13:49 -0800)]
GIT_DIFF_FIND_REMOVE_UNMODIFIED sounds better

10 years agoAdd GIT_DIFF_FIND_DELETE_UNMODIFIED flag
Russell Belfer [Mon, 2 Dec 2013 21:30:05 +0000 (13:30 -0800)]
Add GIT_DIFF_FIND_DELETE_UNMODIFIED flag

When doing copy detection, it is often necessary to include
UNMODIFIED records in the git_diff so they are available as source
records for GIT_DIFF_FIND_COPIES_FROM_UNMODIFIED.  Yet in the final
diff, often you will not want to have these UNMODIFIED records.
This adds a flag which marks these UNMODIFIED records for deletion
from the diff list so they will be removed after the rename detect
phase is over.

10 years agoFix bug making split deltas a COPIED targets
Russell Belfer [Mon, 2 Dec 2013 21:27:06 +0000 (13:27 -0800)]
Fix bug making split deltas a COPIED targets

When FIND_COPIES is used in combination with BREAK_REWRITES for
rename detection, there was a bug where the split MODIFIED delta
was only used as a target for RENAME records and not for COPIED
records.  This fixes that, converting the split into a pair of
DELETED and COPIED deltas when that circumstance arises.

10 years agoMerge pull request #1978 from libgit2/rb/cmake-find-iconv
Vicent Martí [Mon, 2 Dec 2013 19:59:31 +0000 (11:59 -0800)]
Merge pull request #1978 from libgit2/rb/cmake-find-iconv

Improve iconv finding for cmake

10 years agoImprove iconv finding for cmake
Russell Belfer [Mon, 2 Dec 2013 19:32:37 +0000 (11:32 -0800)]
Improve iconv finding for cmake

* add FindIconv helper for CMake iconv detection
* only default using iconv to ON for MacOS
* update pkg-config generation to include iconv dependency better

10 years agoMerge pull request #1975 from nikai3d/patch-2
Vicent Martí [Sun, 1 Dec 2013 12:10:51 +0000 (04:10 -0800)]
Merge pull request #1975 from nikai3d/patch-2

fix typos in docs

10 years agofix typos in docs
Nicolas Kaiser [Sun, 1 Dec 2013 09:35:56 +0000 (10:35 +0100)]
fix typos in docs

10 years agoMerge pull request #1974 from ghedo/strnlen
Vicent Martí [Wed, 27 Nov 2013 13:36:13 +0000 (05:36 -0800)]
Merge pull request #1974 from ghedo/strnlen

posix: Solaris doesn't have strnlen either

10 years agoposix: Solaris doesn't have strnlen either
Alessandro Ghedini [Wed, 27 Nov 2013 13:17:40 +0000 (14:17 +0100)]
posix: Solaris doesn't have strnlen either

10 years agoMerge pull request #1972 from ghedo/ssh_agent
Vicent Martí [Wed, 20 Nov 2013 15:06:35 +0000 (07:06 -0800)]
Merge pull request #1972 from ghedo/ssh_agent

ssh: add support for ssh-agent authentication

10 years agotransport: document ssh-agent authentication
Alessandro Ghedini [Wed, 20 Nov 2013 13:20:32 +0000 (14:20 +0100)]
transport: document ssh-agent authentication

10 years agossh: add support for ssh-agent authentication
Alessandro Ghedini [Wed, 20 Nov 2013 13:11:44 +0000 (14:11 +0100)]
ssh: add support for ssh-agent authentication

10 years agolibgit2 0.20.0 "anmeldung"
Vicent Marti [Wed, 20 Nov 2013 11:53:33 +0000 (12:53 +0100)]
libgit2 0.20.0 "anmeldung"

Apologies for the delay. This release is chunky,
but you're probably used to chunky releases by now.

Full changelog follows:

Internal changes
+ Added support for decomposed Unicode paths in Mac OS X
+ Added support for junctions in win32
+ Fixed issues with HTTP redirects in the network stack
+ Performance improvements (as always)

git2/blame.h
+ added full support for blame operations

git2/blob.h
+ added `git_blob_filtered_content` to load blobs in
memory with their corresponding filters applied

git2/branch.h
+ added branch iterators as an alternative to the
callback-based API

git2/buffer.h
+ exported the git_buf struct to allow binary buffers
to be passed from/to the library. This simplifies
several APIs

git2/checkout.h
+ implemented additional checkout options ('skip unmerged',
'use ours' and 'use theirs')

git2/clone.h
+ simplified the clone API
+ added new `git_clone_into` to clone into an existing
(empty) repository

git2/commit.h
+ added APIs to access the raw (uncleaned) text of a commit
message

git2/common.h
+ added global options to set the default paths to load
templates from

git2/config.h
+ added multivar iterators
+ added globbing iterator
+ added `git_config_foreach_match` to perform operations
on every single var in a config file

git2/diff.h
+ restructured and simplified the diff API

git2/filter.h
+ added external APIs to configure and apply custom filters
to checked out blobs

git2/index.h
+ `git_index_read` can now force a reload of the index file
even if it hasn't changed on-disk

git2/indexer.h
+ improved the streaming indexer APIs

git2/merge.h
+ added support for merge!

git2/object.h
+ added helper API to lookup a generic object by path

git2/pack.h
+ added progress callbacks to the packbuilder

git2/patch.h
+ added support for patch generation as part of the Diff
API revamp

git2/pathspec.h
+ added helper APIs to work with pathspecs and match files
in the workdir or diffs

git2/push.h
+ added progress callbacks to push

git2/reflog.h
+ changed reflog APIs to work on reference names instead of
the references themselves, so they become less racy

git2/remote.h
+ added support for setting refspecs on remotes, either at
creation or on existing ones
+ simplified the remotes API

git2/revwalk.h
+ add API to simplify parents during a walk

git2/signature.h
+ add helper to create a signature with the default values for
a repository (i.e. the set `user.name` and `user.email` values,
and the current time)

git2/submodules.h
+ improve the status detection for submodules

git2/sys/
+ exported many new internal APIs, such as pluggabe transport
APIs

-vmg, out

10 years agoFormatting fix for cred_acquire_cb
Carlos Martín Nieto [Wed, 20 Nov 2013 10:52:57 +0000 (11:52 +0100)]
Formatting fix for cred_acquire_cb

10 years agoMerge pull request #1966 from nickh/patch_content_offsets
Vicent Martí [Tue, 19 Nov 2013 19:36:02 +0000 (11:36 -0800)]
Merge pull request #1966 from nickh/patch_content_offsets

Add content offset to git_diff_line

10 years agoMerge pull request #1970 from ghedo/netbsd_qsort
Vicent Martí [Tue, 19 Nov 2013 17:15:30 +0000 (09:15 -0800)]
Merge pull request #1970 from ghedo/netbsd_qsort

util: NetBSD doesn't have qsort_r either

10 years agoutil: NetBSD doesn't have qsort_r either
Alessandro Ghedini [Tue, 19 Nov 2013 16:58:58 +0000 (17:58 +0100)]
util: NetBSD doesn't have qsort_r either

10 years agoMerge pull request #1969 from libgit2/ntk/fix/drop_comment
Vicent Martí [Tue, 19 Nov 2013 13:29:37 +0000 (05:29 -0800)]
Merge pull request #1969 from libgit2/ntk/fix/drop_comment

Cleaning up

10 years agotests: Drop unrelated comment
nulltoken [Tue, 19 Nov 2013 13:25:30 +0000 (14:25 +0100)]
tests: Drop unrelated comment

10 years agoMerge pull request #1968 from libgit2/ntk/fix/bad_index
Vicent Martí [Tue, 19 Nov 2013 12:54:31 +0000 (04:54 -0800)]
Merge pull request #1968 from libgit2/ntk/fix/bad_index

Corrupted index is bad for your health

10 years agoindex: Free the index on git_index_open() failure
nulltoken [Tue, 19 Nov 2013 12:24:10 +0000 (13:24 +0100)]
index: Free the index on git_index_open() failure

10 years agotree-cache: Fix error message typo
nulltoken [Tue, 19 Nov 2013 12:16:09 +0000 (13:16 +0100)]
tree-cache: Fix error message typo

10 years agotree-cache: Don't segfault upon corruption
nulltoken [Tue, 19 Nov 2013 12:15:47 +0000 (13:15 +0100)]
tree-cache: Don't segfault upon corruption

10 years agotree-cache: Zero out the allocated tree children array
nulltoken [Tue, 19 Nov 2013 12:13:51 +0000 (13:13 +0100)]
tree-cache: Zero out the allocated tree children array

10 years agotree-cache: Free the tree upon the detection of a corrupted child
nulltoken [Tue, 19 Nov 2013 11:54:57 +0000 (12:54 +0100)]
tree-cache: Free the tree upon the detection of a corrupted child

10 years agoMerge pull request #1967 from victorgp/cleaning-code-minor-change
Vicent Martí [Tue, 19 Nov 2013 11:13:23 +0000 (03:13 -0800)]
Merge pull request #1967 from victorgp/cleaning-code-minor-change

Cleaning code, removing unused variables

10 years agocleaning code, removing unused variables
Victor Garcia [Tue, 19 Nov 2013 10:57:32 +0000 (11:57 +0100)]
cleaning code, removing unused variables

10 years agoAdd content offset to git_diff_line
Nick Hengeveld [Mon, 18 Nov 2013 22:03:25 +0000 (14:03 -0800)]
Add content offset to git_diff_line

For additions and deletions, external consumers like subversion
can make use of the content offset to generate diffs in their
proprietary formats.

10 years agonetops: fix leak
Carlos Martín Nieto [Mon, 18 Nov 2013 20:40:19 +0000 (21:40 +0100)]
netops: fix leak

10 years agoFix warnings
Russell Belfer [Mon, 18 Nov 2013 20:14:50 +0000 (12:14 -0800)]
Fix warnings

10 years agoMerge pull request #1960 from ethomson/ntlm
Vicent Martí [Mon, 18 Nov 2013 19:49:51 +0000 (11:49 -0800)]
Merge pull request #1960 from ethomson/ntlm

NTLM/Negotiate support in WinHTTP

10 years agoIntroduce git_cred_default for NTLM/SPNEGO auth
Edward Thomson [Wed, 13 Nov 2013 21:57:51 +0000 (16:57 -0500)]
Introduce git_cred_default for NTLM/SPNEGO auth

10 years agoPropagate auth error codes as GIT_EUSER in winhttp
Edward Thomson [Wed, 13 Nov 2013 21:46:45 +0000 (16:46 -0500)]
Propagate auth error codes as GIT_EUSER in winhttp

10 years agoMerge pull request #1963 from libgit2/ntk/fix/mailmap
Vicent Martí [Fri, 15 Nov 2013 15:13:50 +0000 (07:13 -0800)]
Merge pull request #1963 from libgit2/ntk/fix/mailmap

Add missing mappings to .mailmap file

10 years agoAdd missing mappings to .mailmap file
nulltoken [Fri, 15 Nov 2013 14:32:52 +0000 (14:32 +0000)]
Add missing mappings to .mailmap file

10 years agoMerge pull request #1962 from libgit2/rename-tests
Vicent Martí [Thu, 14 Nov 2013 22:26:15 +0000 (14:26 -0800)]
Merge pull request #1962 from libgit2/rename-tests

Rename tests directory

10 years agoUpdate files that reference tests-clar
Ben Straub [Thu, 14 Nov 2013 22:10:32 +0000 (14:10 -0800)]
Update files that reference tests-clar

10 years agoRename tests-clar to tests
Ben Straub [Thu, 14 Nov 2013 22:05:52 +0000 (14:05 -0800)]
Rename tests-clar to tests

10 years agoMerge pull request #1951 from victorgp/create-remote-plus-fetch
Vicent Martí [Thu, 14 Nov 2013 15:21:47 +0000 (07:21 -0800)]
Merge pull request #1951 from victorgp/create-remote-plus-fetch

Allowing create remotes with custom fetch spec

10 years agoFix warnings
Russell Belfer [Wed, 13 Nov 2013 19:12:31 +0000 (11:12 -0800)]
Fix warnings

10 years agotests: make a few globals statics
Carlos Martín Nieto [Wed, 13 Nov 2013 12:08:56 +0000 (13:08 +0100)]
tests: make a few globals statics

ld was warning that the size of path changed, rightly so.