]> git.proxmox.com Git - libgit2.git/log
libgit2.git
11 years agoRearrange clar submodule cleanup code
Russell Belfer [Fri, 13 Sep 2013 16:26:26 +0000 (09:26 -0700)]
Rearrange clar submodule cleanup code

11 years agoPort tests from PR 1683
Russell Belfer [Thu, 12 Sep 2013 21:48:24 +0000 (14:48 -0700)]
Port tests from PR 1683

This ports over some of the tests from
    https://github.com/libgit2/libgit2/pull/1683
by @yorah and @ethomson

11 years agoMove binary check to CRLF filter itself
Russell Belfer [Thu, 12 Sep 2013 21:47:15 +0000 (14:47 -0700)]
Move binary check to CRLF filter itself

Checkout should not reject binary files from filters, as a filter
may actually wish to operate on binary files.  The CRLF filter should
reject binary files itself if it wishes to.  Moreover, the CRLF
filter requires this logic so that users can emulate the checkout
data in their odb -> workdir filtering.

Conflicts:
src/checkout.c
src/crlf.c

11 years agoMerge git_buf and git_buffer
Russell Belfer [Thu, 12 Sep 2013 05:00:36 +0000 (22:00 -0700)]
Merge git_buf and git_buffer

This makes the git_buf struct that was used internally into an
externally available structure and eliminates the git_buffer.

As part of that, some of the special cases that arose with the
externally used git_buffer were blended into the git_buf, such as
being careful about git_buf objects that may have a NULL ptr and
allowing for bufs with a valid ptr and size but zero asize as a
way of referring to externally owned data.

11 years agoAdd ident filter
Russell Belfer [Wed, 11 Sep 2013 23:38:33 +0000 (16:38 -0700)]
Add ident filter

This adds the ident filter (that knows how to replace $Id$) and
tweaks the filter APIs and code so that git_filter_source objects
actually have the updated OID of the object being filtered when
it is a known value.

11 years agoAdd functions to manipulate filter lists
Russell Belfer [Wed, 11 Sep 2013 21:23:39 +0000 (14:23 -0700)]
Add functions to manipulate filter lists

Extend the git2/sys/filter API with functions to look up a filter
and add it manually to a filter list.  This requires some trickery
because the regular attribute lookups and checks are bypassed when
this happens, but in the right hands, it will allow a user to have
granular control over applying filters.

11 years agoUpdate filter registry code
Russell Belfer [Wed, 11 Sep 2013 19:45:37 +0000 (12:45 -0700)]
Update filter registry code

This updates the git filter registry to be a little cleaner and
plugs some memory leaks.

11 years agoAdd simple global shutdown hooks
Russell Belfer [Wed, 11 Sep 2013 19:45:20 +0000 (12:45 -0700)]
Add simple global shutdown hooks

Increasingly there are a number of components that want to do some
cleanup at global shutdown time (at least if there are not going
to be memory leaks).  This creates a very simple system of shutdown
hooks that will be invoked by git_threads_shutdown.  Right now, the
maximum number of hooks is hardcoded, but since adding a hook is
not a public API, it should be fine and I thought it was better to
start off with really simple code.

11 years agoFix longstanding valgrind warning
Russell Belfer [Wed, 11 Sep 2013 19:38:06 +0000 (12:38 -0700)]
Fix longstanding valgrind warning

There was a possible circumstance that could result in reading
past the end of a buffer.  This check fixes that.

11 years agoHook up filter initialize callback
Russell Belfer [Tue, 10 Sep 2013 23:53:09 +0000 (16:53 -0700)]
Hook up filter initialize callback

I knew I forgot something

11 years agoExtend public filter api with filter lists
Russell Belfer [Tue, 10 Sep 2013 23:33:32 +0000 (16:33 -0700)]
Extend public filter api with filter lists

This moves the git_filter_list into the public API so that users
can create, apply, and dispose of filter lists.  This allows more
granular application of filters to user data outside of libgit2
internals.

This also converts all the internal usage of filters to the public
APIs along with a few small tweaks to make it easier to use the
public git_buffer stuff alongside the internal git_buf.

11 years agoAdd attributes to filters and fix registry
Russell Belfer [Mon, 9 Sep 2013 23:57:34 +0000 (16:57 -0700)]
Add attributes to filters and fix registry

The filter registry as implemented was too primitive to actually
work once multiple filters were coming into play.  This expands
the implementation of the registry to handle multiple prioritized
filters correctly.

Additionally, this adds an "attributes" field to a filter that
makes it really really easy to implement filters that are based
on one or more attribute values.  The lookup and even simple value
checking can all happen automatically without custom filter code.

Lastly, with the registry improvements, this fills out the filter
lifecycle callbacks, with initialize and shutdown callbacks that
will be called before the filter is first used and after it is
last invoked.  This allows for system-wide initialization and
cleanup by the filter.

11 years agoMake git_filter_source opaque
Russell Belfer [Fri, 30 Aug 2013 23:02:07 +0000 (16:02 -0700)]
Make git_filter_source opaque

11 years agoCreate public filter object and use it
Russell Belfer [Wed, 28 Aug 2013 23:44:04 +0000 (16:44 -0700)]
Create public filter object and use it

This creates include/sys/filter.h with a basic definition of a
git_filter and then converts the internal code to use it.  There
are related internal objects (git_filter_list) that we will want
to publish at some point, but this is a first step.

11 years agoStart of filter API + git_blob_filtered_content
Russell Belfer [Tue, 27 Aug 2013 06:17:07 +0000 (23:17 -0700)]
Start of filter API + git_blob_filtered_content

This begins the process of exposing git_filter objects to the
public API.  This includes:

* new public type and API for `git_buffer` through which an
  allocated buffer can be passed to the user
* new API `git_blob_filtered_content`
* make the git_filter type and GIT_FILTER_TO_... constants public

11 years agoMerge pull request #1833 from libgit2/cmn/config-include
Vicent Martí [Tue, 17 Sep 2013 15:09:57 +0000 (08:09 -0700)]
Merge pull request #1833 from libgit2/cmn/config-include

Support config includes

11 years agoMerge pull request #1857 from linquize/find-git-path-win32
Vicent Martí [Tue, 17 Sep 2013 15:00:44 +0000 (08:00 -0700)]
Merge pull request #1857 from linquize/find-git-path-win32

Fix failure in win32 git path guessing

11 years agoFix failure in win32_find_git_in_registry() when UAC is turned on
Linquize [Tue, 17 Sep 2013 14:57:30 +0000 (22:57 +0800)]
Fix failure in win32_find_git_in_registry() when UAC is turned on

Demand read only access to registry key instead of full access.
This might happen in Windows Vista and later.

11 years agoFix failure in win32_find_git_in_registry()
Linquize [Tue, 17 Sep 2013 14:57:06 +0000 (22:57 +0800)]
Fix failure in win32_find_git_in_registry()

The buffer size 0 was definitely not enough so it failed

11 years agoMerge pull request #1856 from libgit2/cmn/no-orphans
Vicent Martí [Tue, 17 Sep 2013 10:45:35 +0000 (03:45 -0700)]
Merge pull request #1856 from libgit2/cmn/no-orphans

No such thing as an orphan branch

11 years agoMerge pull request #1851 from tiennou/libssh2-errors
Vicent Martí [Tue, 17 Sep 2013 10:40:50 +0000 (03:40 -0700)]
Merge pull request #1851 from tiennou/libssh2-errors

Provide libssh2 error message

11 years agoNo such thing as an orphan branch
Carlos Martín Nieto [Tue, 17 Sep 2013 07:50:30 +0000 (09:50 +0200)]
No such thing as an orphan branch

Unfortunately git-core uses the term "unborn branch" and "orphan
branch" interchangeably. However, "orphan" is only really there for
the checkout command, which has the `--orphan` option so it doesn't
actually create the branch.

Branches never have parents, so the distinction of a branch with no
parents is odd to begin with. Crucially, the error messages deal with
unborn branches, so let's use that.

11 years agoWhitespace.
Etienne Samson [Fri, 9 Aug 2013 11:14:19 +0000 (13:14 +0200)]
Whitespace.

11 years agoAdd a wrapper to provide the libssh2 error message
Etienne Samson [Fri, 9 Aug 2013 11:14:06 +0000 (13:14 +0200)]
Add a wrapper to provide the libssh2 error message

11 years agoclone: Anal as fuck
Vicent Marti [Mon, 16 Sep 2013 20:23:05 +0000 (22:23 +0200)]
clone: Anal as fuck

11 years agoMerge pull request #1850 from linquize/git-clone-init-options
Ben Straub [Mon, 16 Sep 2013 00:50:03 +0000 (17:50 -0700)]
Merge pull request #1850 from linquize/git-clone-init-options

git_clone supports init_options

11 years agogit_clone supports optional init_options
Linquize [Sat, 14 Sep 2013 10:22:16 +0000 (18:22 +0800)]
git_clone supports optional init_options

11 years agoAdd tests for git_tree_walk
Russell Belfer [Fri, 13 Sep 2013 21:33:26 +0000 (14:33 -0700)]
Add tests for git_tree_walk

This tests the fixes for issues from #1849

11 years agoMerge pull request #1849 from whavinga/treewalker
Russell Belfer [Fri, 13 Sep 2013 21:31:26 +0000 (14:31 -0700)]
Merge pull request #1849 from whavinga/treewalker

Treewalker

11 years agoFix memory leak in git_tree_walk on error or when stopping the walk from the supplied...
wilke [Fri, 13 Sep 2013 19:36:39 +0000 (21:36 +0200)]
Fix memory leak in git_tree_walk on error or when stopping the walk from the supplied callback

11 years agoPrevent git_tree_walk 'skip entry' callback return code from leaking through as the...
wilke [Fri, 13 Sep 2013 19:21:33 +0000 (21:21 +0200)]
Prevent git_tree_walk 'skip entry' callback return code from leaking through as the return value of git_tree_walk

11 years agoMerge pull request #1848 from libgit2/ntk/fix/cl_assert_equal_sz
Vicent Martí [Thu, 12 Sep 2013 13:42:06 +0000 (06:42 -0700)]
Merge pull request #1848 from libgit2/ntk/fix/cl_assert_equal_sz

Fix cl_assert_equal_sz error message formating

11 years agoclar: Move cl_assert_equal_sz() definition to clar.h
nulltoken [Thu, 12 Sep 2013 11:50:35 +0000 (13:50 +0200)]
clar: Move cl_assert_equal_sz() definition to clar.h

11 years agoclar: Fix clar__assert_equal error message formating
nulltoken [Thu, 12 Sep 2013 11:50:00 +0000 (13:50 +0200)]
clar: Fix clar__assert_equal error message formating

11 years agoMerge pull request #1839 from isaac/ssh-repository-invalid
Vicent Martí [Wed, 11 Sep 2013 23:46:39 +0000 (16:46 -0700)]
Merge pull request #1839 from isaac/ssh-repository-invalid

SSH: Clone fails with errors: ERROR: Repository invalid & Early EOF

11 years agoMerge pull request #1846 from libgit2/ntk/fix/format
Ben Straub [Wed, 11 Sep 2013 20:14:42 +0000 (13:14 -0700)]
Merge pull request #1846 from libgit2/ntk/fix/format

errors: Fix format of some error messages

11 years agoerrors: Fix format of some error messages
nulltoken [Wed, 11 Sep 2013 18:13:59 +0000 (20:13 +0200)]
errors: Fix format of some error messages

11 years agoMerge pull request #1838 from libgit2/cmn/first-parent
Russell Belfer [Tue, 10 Sep 2013 23:55:58 +0000 (16:55 -0700)]
Merge pull request #1838 from libgit2/cmn/first-parent

revwalk: allow simplifying by first-parent

11 years agoMerge pull request #1841 from libgit2/ntk/fix/loose_ambiguous
Russell Belfer [Tue, 10 Sep 2013 23:54:37 +0000 (16:54 -0700)]
Merge pull request #1841 from libgit2/ntk/fix/loose_ambiguous

Make odb_loose return EAMBIGUOUS when required

11 years agoodb: Teach loose backend to return EAMBIGUOUS
nulltoken [Sun, 8 Sep 2013 16:25:17 +0000 (18:25 +0200)]
odb: Teach loose backend to return EAMBIGUOUS

11 years agopath: Make direach() return EUSER on callback error
nulltoken [Sun, 8 Sep 2013 16:22:28 +0000 (18:22 +0200)]
path: Make direach() return EUSER on callback error

11 years agorevwalk: allow simplifying by first-parent
Carlos Martín Nieto [Sat, 7 Sep 2013 22:52:26 +0000 (00:52 +0200)]
revwalk: allow simplifying by first-parent

When enabled, only the first parent of each commit will be queued,
enabling a simple way of using first-parent simplification.

11 years agoMerge pull request #1843 from uh-sem-blee/development
Russell Belfer [Mon, 9 Sep 2013 18:11:39 +0000 (11:11 -0700)]
Merge pull request #1843 from uh-sem-blee/development

fixing headers with bad values for objective-c

11 years agoMake work if built with threading enabled
Russell Belfer [Mon, 9 Sep 2013 18:07:17 +0000 (11:07 -0700)]
Make work if built with threading enabled

11 years agoOnly use callbacks when -n or -v in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:49:10 +0000 (18:49 +0200)]
Only use callbacks when -n or -v in add example.

11 years agoMove statement after declarations in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:44:12 +0000 (18:44 +0200)]
Move statement after declarations in add example.

11 years agoRemove unnececery arguments priting in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:43:14 +0000 (18:43 +0200)]
Remove unnececery arguments priting in add example.

11 years agoBetter usage info in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:42:47 +0000 (18:42 +0200)]
Better usage info in add example.

11 years agoAdd -u option to add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:34:03 +0000 (18:34 +0200)]
Add -u option to add example.

11 years agoSupported options information in add example.
Krzysztof Adamski [Tue, 3 Sep 2013 17:11:50 +0000 (19:11 +0200)]
Supported options information in add example.

11 years agoAdding add example.
Krzysztof Adamski [Mon, 2 Sep 2013 00:01:40 +0000 (02:01 +0200)]
Adding add example.

11 years agofixing headers with bad values for objective-c
John Josef [Mon, 9 Sep 2013 17:53:22 +0000 (13:53 -0400)]
fixing headers with bad values for objective-c

11 years agoMerge pull request #1842 from uh-sem-blee/development
Russell Belfer [Mon, 9 Sep 2013 17:30:31 +0000 (10:30 -0700)]
Merge pull request #1842 from uh-sem-blee/development

fixes issues with objective-git

11 years agoComment updates
Russell Belfer [Mon, 9 Sep 2013 17:24:48 +0000 (10:24 -0700)]
Comment updates

11 years agoMerge pull request #1837 from libgit2/ntk/topic/control_stream_write_size
Russell Belfer [Mon, 9 Sep 2013 17:17:54 +0000 (10:17 -0700)]
Merge pull request #1837 from libgit2/ntk/topic/control_stream_write_size

odb: Error when streaming in less|more bytes than declared

11 years agoTest for repo before removing leading colon
Isaac Kearse [Mon, 9 Sep 2013 17:16:52 +0000 (05:16 +1200)]
Test for repo before removing leading colon

11 years agofixes issues with objective-git
John Josef [Sun, 8 Sep 2013 22:31:56 +0000 (18:31 -0400)]
fixes issues with objective-git

11 years agoTrim leading colon from ssh repository path
Isaac Kearse [Sun, 8 Sep 2013 02:11:08 +0000 (14:11 +1200)]
Trim leading colon from ssh repository path

11 years agoodb: Error when streaming in too [few|many] bytes
nulltoken [Sat, 7 Sep 2013 20:39:05 +0000 (22:39 +0200)]
odb: Error when streaming in too [few|many] bytes

11 years agoconfig: handle realloc issues from larger depths
Carlos Martín Nieto [Sat, 7 Sep 2013 17:07:39 +0000 (19:07 +0200)]
config: handle realloc issues from larger depths

As the include depth increases, the chance of a realloc
increases. This means that whenever we run git_array_alloc() or call
config_parse(), we need to remember what our reader's index is so we
can look it up again.

11 years agoconfig: return an error when reaching the maximum include depth
Carlos Martín Nieto [Sat, 7 Sep 2013 16:50:35 +0000 (18:50 +0200)]
config: return an error when reaching the maximum include depth

11 years agoconfig: fix variable overriding
Carlos Martín Nieto [Fri, 6 Sep 2013 19:12:26 +0000 (21:12 +0200)]
config: fix variable overriding

When two or more variables of the same name exist and the user asks
for a scalar, we must return the latest value assign to it.

11 years agoconfig: refresh included files
Carlos Martín Nieto [Fri, 6 Sep 2013 18:51:35 +0000 (20:51 +0200)]
config: refresh included files

We need to refresh the variables from the included files if they are
changed, so loop over all included files and re-parse the files if any
of them has changed.

11 years agoconfig: keep a list of included files
Carlos Martín Nieto [Fri, 6 Sep 2013 18:34:02 +0000 (20:34 +0200)]
config: keep a list of included files

When refreshing we need to refresh if any of the files have been
touched, so we need to keep the list.

11 years agoconfig: add support for include directives
Carlos Martín Nieto [Thu, 5 Sep 2013 17:24:20 +0000 (19:24 +0200)]
config: add support for include directives

Relative, absolute and home-relative paths are supported. The
recursion limit it set at 10, just like in git.

11 years agoMerge pull request #1836 from libgit2/ntk/fix/leaks
Vicent Martí [Sat, 7 Sep 2013 16:18:56 +0000 (09:18 -0700)]
Merge pull request #1836 from libgit2/ntk/fix/leaks

Fix memory leaks

11 years agoMerge pull request #1835 from libgit2/ntk/fix/less_backend_calls_on_revparsing
Vicent Martí [Sat, 7 Sep 2013 16:18:44 +0000 (09:18 -0700)]
Merge pull request #1835 from libgit2/ntk/fix/less_backend_calls_on_revparsing

Some revparse love

11 years agotests: Fix memory leaks
nulltoken [Sat, 7 Sep 2013 15:51:24 +0000 (17:51 +0200)]
tests: Fix memory leaks

11 years agorevparse: Simplify error handling
nulltoken [Sat, 7 Sep 2013 15:31:30 +0000 (17:31 +0200)]
revparse: Simplify error handling

11 years agorevparse: Prevent unnecessary odb backend calls
nulltoken [Sat, 7 Sep 2013 15:21:41 +0000 (17:21 +0200)]
revparse: Prevent unnecessary odb backend calls

11 years agoMerge pull request #1791 from libgit2/cmn/revwalk-recursive
Russell Belfer [Fri, 6 Sep 2013 21:20:51 +0000 (14:20 -0700)]
Merge pull request #1791 from libgit2/cmn/revwalk-recursive

revwalk: make mark_unintersting use a loop

11 years agoMerge pull request #1815 from libgit2/ntk/topic/stream_write/check_before_overwriting
Russell Belfer [Fri, 6 Sep 2013 21:13:12 +0000 (14:13 -0700)]
Merge pull request #1815 from libgit2/ntk/topic/stream_write/check_before_overwriting

Ask the odbbackend if the object exists before overwriting it

11 years agoodb: Prevent stream_finalize_write() from overwriting
nulltoken [Thu, 29 Aug 2013 12:19:34 +0000 (14:19 +0200)]
odb: Prevent stream_finalize_write() from overwriting

Now that #1785 is merged, git_odb_stream_finalize_write() calculates the object id before invoking the odb backend.

This commit gives a chance to the backend to check if it already knows this object.

11 years agoblob: Slightly enforce a create_fromchunks() test
nulltoken [Thu, 29 Aug 2013 12:12:13 +0000 (14:12 +0200)]
blob: Slightly enforce a create_fromchunks() test

11 years agorevwalk: make mark_unintersting use a loop
Carlos Martín Nieto [Sat, 17 Aug 2013 05:58:55 +0000 (07:58 +0200)]
revwalk: make mark_unintersting use a loop

Using a recursive function can blow the stack when dealing with long
histories. Use a loop instead to limit the call chain depth.

This fixes #1223.

11 years agoMerge pull request #1829 from libgit2/fix-umask-fragility
Vicent Martí [Thu, 5 Sep 2013 23:56:21 +0000 (16:56 -0700)]
Merge pull request #1829 from libgit2/fix-umask-fragility

Fix umask fragility

11 years agoBetter macro name for is-exec-bit-set test
Russell Belfer [Thu, 5 Sep 2013 23:14:32 +0000 (16:14 -0700)]
Better macro name for is-exec-bit-set test

11 years agoGIT_MODE_TYPE should exclude setgid bits
Russell Belfer [Thu, 5 Sep 2013 19:01:17 +0000 (12:01 -0700)]
GIT_MODE_TYPE should exclude setgid bits

The GIT_MODE_TYPE macro was looking at all bits above the
permissions, but it should really just look at the top bits so
that it will give the right results for a setgid or setuid entry.

Since we're now using these macros in the tests, this was causing
a test failure on platforms that don't support setgid.

11 years agoFix tests of file modes
Russell Belfer [Thu, 5 Sep 2013 18:45:29 +0000 (11:45 -0700)]
Fix tests of file modes

This fixes an issue checking file modes in the tests that
initialize a repo from a template directory when a symlink is
used in the template.  Also, this updates some other places where
we are examining file modes to use the new macros.

11 years agoAdd more file mode permissions macros
Russell Belfer [Thu, 5 Sep 2013 18:20:12 +0000 (11:20 -0700)]
Add more file mode permissions macros

This adds some more macros for some standard operations on file
modes, particularly related to permissions, and then updates a
number of places around the code base to use the new macros.

11 years agoFix some newer GCC compiler warnings
Russell Belfer [Thu, 5 Sep 2013 17:25:16 +0000 (10:25 -0700)]
Fix some newer GCC compiler warnings

11 years agoconfig: decouple the backend from the reader at the low level
Carlos Martín Nieto [Thu, 5 Sep 2013 16:06:12 +0000 (18:06 +0200)]
config: decouple the backend from the reader at the low level

In order to support config includes, we must differentiate between the
backend's main file and the file we are currently parsing.

This lays the groundwork for includes, keeping the current behaviours.

11 years agoMerge pull request #1831 from linquize/version.h-warning
Vicent Martí [Thu, 5 Sep 2013 13:30:08 +0000 (06:30 -0700)]
Merge pull request #1831 from linquize/version.h-warning

Fix warning in src/win32/version.h

11 years agoFix warning in src/win32/version.h
Linquize [Thu, 5 Sep 2013 12:42:47 +0000 (20:42 +0800)]
Fix warning in src/win32/version.h

11 years agoFix tests to use core.filemode correctly
Russell Belfer [Wed, 4 Sep 2013 23:41:34 +0000 (16:41 -0700)]
Fix tests to use core.filemode correctly

Some windows tests were failing

11 years ago_umask is function name on Windows
Russell Belfer [Wed, 4 Sep 2013 23:24:36 +0000 (16:24 -0700)]
_umask is function name on Windows

11 years agoClean up one other mode_t assertion
Russell Belfer [Wed, 4 Sep 2013 23:21:18 +0000 (16:21 -0700)]
Clean up one other mode_t assertion

11 years agoMake tests take umask into account
Russell Belfer [Wed, 4 Sep 2013 23:13:18 +0000 (16:13 -0700)]
Make tests take umask into account

It seems that libgit2 is correctly applying the umask when
initializing a repository from a template and when creating new
directories during checkout, but the test suite is not accounting
for possible variations due to the umask.  This updates that so
that the test suite will work regardless of the umask.

11 years agoUpdate clar
Russell Belfer [Wed, 4 Sep 2013 18:42:48 +0000 (11:42 -0700)]
Update clar

11 years agoTest pushing to remotes with "file:///" urls
Ben Straub [Wed, 4 Sep 2013 21:27:59 +0000 (14:27 -0700)]
Test pushing to remotes with "file:///" urls

11 years agoProvide better errors for push on non-bare local remotes
Ben Straub [Wed, 4 Sep 2013 20:07:42 +0000 (13:07 -0700)]
Provide better errors for push on non-bare local remotes

11 years agoMerge pull request #1817 from libgit2/ntk/fix/backend/honor_refresh_capabilities
Vicent Martí [Wed, 4 Sep 2013 13:20:36 +0000 (06:20 -0700)]
Merge pull request #1817 from libgit2/ntk/fix/backend/honor_refresh_capabilities

Of backends and refreshers...

11 years agoBackport @peff's fix for duplicates in sha1_lookup
Vicent Marti [Wed, 4 Sep 2013 11:16:57 +0000 (13:16 +0200)]
Backport @peff's fix for duplicates in sha1_lookup

11 years agoodb: Move the auto refresh logic to the pack backend
nulltoken [Fri, 30 Aug 2013 15:36:00 +0000 (17:36 +0200)]
odb: Move the auto refresh logic to the pack backend

Previously, `git_object_read()`, `git_object_read_prefix()` and
`git_object_exists()` were implementing an auto refresh logic. When the
expected object couldn't be found in any backend, a call to
`git_odb_refresh()` was triggered and the lookup was once again performed
against all backends.

This commit removes this auto-refresh logic from the odb layer and pushes
it down into the pack-backend (as it's the only one currently exposing
a `refresh()` endpoint).

11 years agoMerge pull request #1828 from libgit2/examples-cmakelists
Vicent Martí [Tue, 3 Sep 2013 22:54:45 +0000 (15:54 -0700)]
Merge pull request #1828 from libgit2/examples-cmakelists

Split examples CMakeLists.txt

11 years agoSplit examples CMakeLists.txt
Russell Belfer [Tue, 3 Sep 2013 22:14:04 +0000 (15:14 -0700)]
Split examples CMakeLists.txt

Also, this converts the examples/CMakeLists.txt from explicitly
listing to just globbing for all the individual C files.

11 years agoMerge pull request #1827 from libgit2/relative-path-win32-fix
Russell Belfer [Tue, 3 Sep 2013 22:19:13 +0000 (15:19 -0700)]
Merge pull request #1827 from libgit2/relative-path-win32-fix

Fix resolving relative windows network paths

11 years agoFix resolving relative windows network paths
Russell Belfer [Tue, 3 Sep 2013 21:00:27 +0000 (14:00 -0700)]
Fix resolving relative windows network paths

11 years agodon't use inline in tests for win32
Russell Belfer [Tue, 3 Sep 2013 19:33:34 +0000 (12:33 -0700)]
don't use inline in tests for win32

11 years agoMerge pull request #1804 from ethomson/rewrites
Vicent Martí [Tue, 3 Sep 2013 19:29:18 +0000 (12:29 -0700)]
Merge pull request #1804 from ethomson/rewrites

Minor changes for rewrites