]> git.proxmox.com Git - libgit2.git/log
libgit2.git
11 years agoAdd typedefs for internal structs
Ben Straub [Fri, 20 Sep 2013 22:20:03 +0000 (15:20 -0700)]
Add typedefs for internal structs

11 years agoDetect boundaries, support limiting commit range
Ben Straub [Fri, 20 Sep 2013 21:31:51 +0000 (14:31 -0700)]
Detect boundaries, support limiting commit range

11 years agoBlame: fixturize tests
Ben Straub [Thu, 19 Sep 2013 21:27:44 +0000 (14:27 -0700)]
Blame: fixturize tests

11 years agoblame: allow restriction to line range
Ben Straub [Thu, 19 Sep 2013 21:18:51 +0000 (14:18 -0700)]
blame: allow restriction to line range

11 years agoStop being crazy about freeing memory
Ben Straub [Thu, 19 Sep 2013 17:27:37 +0000 (10:27 -0700)]
Stop being crazy about freeing memory

11 years agoCheck errors from libgit2 calls
Ben Straub [Tue, 17 Sep 2013 23:46:27 +0000 (16:46 -0700)]
Check errors from libgit2 calls

11 years agoAdd blame example
Ben Straub [Mon, 16 Sep 2013 23:27:10 +0000 (16:27 -0700)]
Add blame example

11 years agoPort blame from git.git
Ben Straub [Mon, 16 Sep 2013 23:20:38 +0000 (16:20 -0700)]
Port blame from git.git

11 years agoMerge branch 'development' into blame_rebased
Ben Straub [Mon, 16 Sep 2013 23:12:31 +0000 (16:12 -0700)]
Merge branch 'development' into blame_rebased

Conflicts:
include/git2.h

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 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 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

11 years agoMerge pull request #1825 from nvloff/resolve_relative
Russell Belfer [Tue, 3 Sep 2013 19:27:56 +0000 (12:27 -0700)]
Merge pull request #1825 from nvloff/resolve_relative

path: properly resolve relative paths

11 years agopath: properly resolve relative paths
Nikolai Vladimirov [Tue, 3 Sep 2013 04:58:21 +0000 (07:58 +0300)]
path: properly resolve relative paths

11 years agoMerge pull request #1814 from libgit2/is-empty-fix
Vicent Martí [Tue, 3 Sep 2013 11:11:07 +0000 (04:11 -0700)]
Merge pull request #1814 from libgit2/is-empty-fix

Fix incorrect precedence within git_repository_is_empty()

11 years agoMerge pull request #1823 from kadamski/building4android
Vicent Martí [Mon, 2 Sep 2013 10:01:40 +0000 (03:01 -0700)]
Merge pull request #1823 from kadamski/building4android

Small changes enabling compiling libgit2 for Android.

11 years agoMerge pull request #1822 from kadamski/examples-cleanup
Vicent Martí [Sun, 1 Sep 2013 20:39:11 +0000 (13:39 -0700)]
Merge pull request #1822 from kadamski/examples-cleanup

Small cleanup in examples.

11 years agoAdd instructions about buiding for Android to README.md
Krzysztof Adamski [Sun, 1 Sep 2013 17:43:35 +0000 (19:43 +0200)]
Add instructions about buiding for Android to README.md

11 years agoBuild all example files if BUILD_EXAMPLES used.
Krzysztof Adamski [Sun, 1 Sep 2013 16:59:42 +0000 (18:59 +0200)]
Build all example files if BUILD_EXAMPLES used.

11 years agoAdding credentials callback to ls-remote and fetch too.
Krzysztof Adamski [Sun, 1 Sep 2013 16:35:39 +0000 (18:35 +0200)]
Adding credentials callback to ls-remote and fetch too.

11 years agoRemoving unneeded code duplication in ls-remote.c
Krzysztof Adamski [Sun, 1 Sep 2013 16:30:11 +0000 (18:30 +0200)]
Removing unneeded code duplication in ls-remote.c

11 years agoDefine S_IREAD i S_IWRITE for Android.
Krzysztof Adamski [Sun, 1 Sep 2013 16:53:07 +0000 (18:53 +0200)]
Define S_IREAD i S_IWRITE for Android.

11 years agoUse git__insertsort_r on Android too.
Krzysztof Adamski [Sun, 1 Sep 2013 16:47:56 +0000 (18:47 +0200)]
Use git__insertsort_r on Android too.

11 years agoCreate ANDROID build option
Krzysztof Adamski [Sun, 1 Sep 2013 16:45:36 +0000 (18:45 +0200)]
Create ANDROID build option

CMake seems not to support Android as a target and this option
lets us test this in CMakeLists.txt.

11 years agoMerge pull request #1820 from linquize/git_oid_streq
Vicent Martí [Sun, 1 Sep 2013 15:40:48 +0000 (08:40 -0700)]
Merge pull request #1820 from linquize/git_oid_streq

Update documentation of git_oid_streq to remove outdated error code

11 years agoMerge pull request #1819 from linquize/git_oid_shorten_add
Vicent Martí [Sun, 1 Sep 2013 15:40:10 +0000 (08:40 -0700)]
Merge pull request #1819 from linquize/git_oid_shorten_add

oid: git_oid_shorten_add() sets GITERR_INVALID when OID set is full

11 years agoPoint to the right Go bindings
Carlos Martín Nieto [Sat, 31 Aug 2013 15:42:38 +0000 (17:42 +0200)]
Point to the right Go bindings

11 years agoMerge pull request #1821 from n1rvana/development
Carlos Martín Nieto [Sat, 31 Aug 2013 15:40:49 +0000 (08:40 -0700)]
Merge pull request #1821 from n1rvana/development

Update readme to point to the currently maintained Erlang bindings.

11 years agoUpdate readme to point to the currently maintained Erlang bindings. Namely: https...
Nirvana [Sat, 31 Aug 2013 13:25:25 +0000 (09:25 -0400)]
Update readme to point to the currently maintained Erlang bindings. Namely: https://github.com/carlosmn/geef

11 years agooid: git_oid_shorten_add() sets GITERR_INVALID when OID set is full
Linquize [Sat, 31 Aug 2013 10:22:50 +0000 (18:22 +0800)]
oid: git_oid_shorten_add() sets GITERR_INVALID when OID set is full

11 years agoUpdate documentation of git_oid_streq to remove outdated error code
Linquize [Sat, 31 Aug 2013 10:19:44 +0000 (18:19 +0800)]
Update documentation of git_oid_streq to remove outdated error code

11 years agoodb: Code beautification
nulltoken [Fri, 30 Aug 2013 15:07:41 +0000 (17:07 +0200)]
odb: Code beautification

11 years agoodb: Honor the non refreshing capability of a backend
nulltoken [Fri, 30 Aug 2013 14:31:52 +0000 (16:31 +0200)]
odb: Honor the non refreshing capability of a backend

11 years agoTreat detached HEAD as non-empty repo
Russell Belfer [Thu, 29 Aug 2013 17:27:01 +0000 (10:27 -0700)]
Treat detached HEAD as non-empty repo

This simplifies the git_repository_is_empty a bit so that a
detached HEAD is just taken to mean the repo is not empty, since
a newly initialized repo will not have a detached HEAD.

11 years agorepository: Make the is_empty check more explicit
Vicent Martí [Thu, 29 Aug 2013 11:27:37 +0000 (13:27 +0200)]
repository: Make the is_empty check more explicit