]>
git.proxmox.com Git - libgit2.git/log
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.
Vicent Marti [Mon, 16 Sep 2013 20:23:05 +0000 (22:23 +0200)]
clone: Anal as fuck
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
Linquize [Sat, 14 Sep 2013 10:22:16 +0000 (18:22 +0800)]
git_clone supports optional init_options
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
Russell Belfer [Fri, 13 Sep 2013 21:31:26 +0000 (14:31 -0700)]
Merge pull request #1849 from whavinga/treewalker
Treewalker
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
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
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
nulltoken [Thu, 12 Sep 2013 11:50:35 +0000 (13:50 +0200)]
clar: Move cl_assert_equal_sz() definition to clar.h
nulltoken [Thu, 12 Sep 2013 11:50:00 +0000 (13:50 +0200)]
clar: Fix clar__assert_equal error message formating
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
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
nulltoken [Wed, 11 Sep 2013 18:13:59 +0000 (20:13 +0200)]
errors: Fix format of some error messages
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
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
nulltoken [Sun, 8 Sep 2013 16:25:17 +0000 (18:25 +0200)]
odb: Teach loose backend to return EAMBIGUOUS
nulltoken [Sun, 8 Sep 2013 16:22:28 +0000 (18:22 +0200)]
path: Make direach() return EUSER on callback error
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.
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
Russell Belfer [Mon, 9 Sep 2013 18:07:17 +0000 (11:07 -0700)]
Make work if built with threading enabled
Krzysztof Adamski [Wed, 4 Sep 2013 16:49:10 +0000 (18:49 +0200)]
Only use callbacks when -n or -v in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:44:12 +0000 (18:44 +0200)]
Move statement after declarations in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:43:14 +0000 (18:43 +0200)]
Remove unnececery arguments priting in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:42:47 +0000 (18:42 +0200)]
Better usage info in add example.
Krzysztof Adamski [Wed, 4 Sep 2013 16:34:03 +0000 (18:34 +0200)]
Add -u option to add example.
Krzysztof Adamski [Tue, 3 Sep 2013 17:11:50 +0000 (19:11 +0200)]
Supported options information in add example.
Krzysztof Adamski [Mon, 2 Sep 2013 00:01:40 +0000 (02:01 +0200)]
Adding add example.
John Josef [Mon, 9 Sep 2013 17:53:22 +0000 (13:53 -0400)]
fixing headers with bad values for objective-c
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
Russell Belfer [Mon, 9 Sep 2013 17:24:48 +0000 (10:24 -0700)]
Comment updates
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
Isaac Kearse [Mon, 9 Sep 2013 17:16:52 +0000 (05:16 +1200)]
Test for repo before removing leading colon
John Josef [Sun, 8 Sep 2013 22:31:56 +0000 (18:31 -0400)]
fixes issues with objective-git
Isaac Kearse [Sun, 8 Sep 2013 02:11:08 +0000 (14:11 +1200)]
Trim leading colon from ssh repository path
nulltoken [Sat, 7 Sep 2013 20:39:05 +0000 (22:39 +0200)]
odb: Error when streaming in too [few|many] bytes
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
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
nulltoken [Sat, 7 Sep 2013 15:51:24 +0000 (17:51 +0200)]
tests: Fix memory leaks
nulltoken [Sat, 7 Sep 2013 15:31:30 +0000 (17:31 +0200)]
revparse: Simplify error handling
nulltoken [Sat, 7 Sep 2013 15:21:41 +0000 (17:21 +0200)]
revparse: Prevent unnecessary odb backend calls
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
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
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.
nulltoken [Thu, 29 Aug 2013 12:12:13 +0000 (14:12 +0200)]
blob: Slightly enforce a create_fromchunks() test
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.
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
Russell Belfer [Thu, 5 Sep 2013 23:14:32 +0000 (16:14 -0700)]
Better macro name for is-exec-bit-set test
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.
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.
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.
Russell Belfer [Thu, 5 Sep 2013 17:25:16 +0000 (10:25 -0700)]
Fix some newer GCC compiler warnings
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
Linquize [Thu, 5 Sep 2013 12:42:47 +0000 (20:42 +0800)]
Fix warning in src/win32/version.h
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
Russell Belfer [Wed, 4 Sep 2013 23:24:36 +0000 (16:24 -0700)]
_umask is function name on Windows
Russell Belfer [Wed, 4 Sep 2013 23:21:18 +0000 (16:21 -0700)]
Clean up one other mode_t assertion
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.
Russell Belfer [Wed, 4 Sep 2013 18:42:48 +0000 (11:42 -0700)]
Update clar
Ben Straub [Wed, 4 Sep 2013 21:27:59 +0000 (14:27 -0700)]
Test pushing to remotes with "file:///" urls
Ben Straub [Wed, 4 Sep 2013 20:07:42 +0000 (13:07 -0700)]
Provide better errors for push on non-bare local remotes
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...
Vicent Marti [Wed, 4 Sep 2013 11:16:57 +0000 (13:16 +0200)]
Backport @peff's fix for duplicates in sha1_lookup
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).
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
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.
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
Russell Belfer [Tue, 3 Sep 2013 21:00:27 +0000 (14:00 -0700)]
Fix resolving relative windows network paths
Russell Belfer [Tue, 3 Sep 2013 19:33:34 +0000 (12:33 -0700)]
don't use inline in tests for win32
Vicent Martí [Tue, 3 Sep 2013 19:29:18 +0000 (12:29 -0700)]
Merge pull request #1804 from ethomson/rewrites
Minor changes for rewrites
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
Nikolai Vladimirov [Tue, 3 Sep 2013 04:58:21 +0000 (07:58 +0300)]
path: properly resolve relative paths
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()
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.
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.
Krzysztof Adamski [Sun, 1 Sep 2013 17:43:35 +0000 (19:43 +0200)]
Add instructions about buiding for Android to README.md
Krzysztof Adamski [Sun, 1 Sep 2013 16:59:42 +0000 (18:59 +0200)]
Build all example files if BUILD_EXAMPLES used.
Krzysztof Adamski [Sun, 1 Sep 2013 16:35:39 +0000 (18:35 +0200)]
Adding credentials callback to ls-remote and fetch too.
Krzysztof Adamski [Sun, 1 Sep 2013 16:30:11 +0000 (18:30 +0200)]
Removing unneeded code duplication in ls-remote.c
Krzysztof Adamski [Sun, 1 Sep 2013 16:53:07 +0000 (18:53 +0200)]
Define S_IREAD i S_IWRITE for Android.
Krzysztof Adamski [Sun, 1 Sep 2013 16:47:56 +0000 (18:47 +0200)]
Use git__insertsort_r on Android too.
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.
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
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
Carlos Martín Nieto [Sat, 31 Aug 2013 15:42:38 +0000 (17:42 +0200)]
Point to the right Go bindings
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.
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
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
Linquize [Sat, 31 Aug 2013 10:19:44 +0000 (18:19 +0800)]
Update documentation of git_oid_streq to remove outdated error code
nulltoken [Fri, 30 Aug 2013 15:07:41 +0000 (17:07 +0200)]
odb: Code beautification
nulltoken [Fri, 30 Aug 2013 14:31:52 +0000 (16:31 +0200)]
odb: Honor the non refreshing capability of a backend
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.
Vicent Martí [Thu, 29 Aug 2013 11:27:37 +0000 (13:27 +0200)]
repository: Make the is_empty check more explicit
Carlos Martín Nieto [Thu, 29 Aug 2013 11:22:44 +0000 (13:22 +0200)]
Fix typo _delete -> _free
Justin Spahr-Summers [Thu, 29 Aug 2013 05:51:44 +0000 (22:51 -0700)]
Fix incorrect precedence within git_repository_is_empty()
Reverts part of
9146f1e57ec4f2b6fa293c78d54f1383464ff5be .
Russell Belfer [Wed, 28 Aug 2013 18:20:47 +0000 (11:20 -0700)]
Add stddef include for sortedcache
All use of sortedcache will need this header, so put it in the
definition of the sortedcache API.
Vicent Martí [Wed, 28 Aug 2013 16:38:14 +0000 (09:38 -0700)]
Merge pull request #1805 from libgit2/threading-packed-load
Thread safety for the refdb_fs
Russell Belfer [Wed, 28 Aug 2013 16:31:32 +0000 (09:31 -0700)]
Some documentation improvements
Edward Thomson [Wed, 21 Aug 2013 19:07:53 +0000 (14:07 -0500)]
Split rewrites, status doesn't return rewrites
Ensure that we apply splits to rewrites, even if we're not
interested in examining it closely for rename/copy detection.
In keeping with core git, status should not display rewrites,
it should simply show files as "modified".
Vicent Martí [Wed, 28 Aug 2013 13:05:50 +0000 (06:05 -0700)]
Merge pull request #1803 from libgit2/ntk/topic/even_more_lenient_remote_parsing
Even more lenient remote parsing