]>
git.proxmox.com Git - libgit2.git/log
Anurag Gupta [Mon, 10 Mar 2014 19:00:33 +0000 (12:00 -0700)]
Callback to hide commits in revision walker.
Vicent Marti [Mon, 24 Mar 2014 12:52:02 +0000 (13:52 +0100)]
Merge pull request #2200 from libgit2/cmn/opts-buf
settings: use git_buf for returning strings
Carlos Martín Nieto [Sun, 23 Mar 2014 14:48:13 +0000 (15:48 +0100)]
opts: bits are not bytes
The default cache size is 256 megabytes, not megabits as claimed in the
docs.
Carlos Martín Nieto [Sun, 23 Mar 2014 12:34:33 +0000 (13:34 +0100)]
settings: use git_buf for returning strings
This survived the last round of culling, as the signature is only in the
comments.
Vicent Marti [Fri, 21 Mar 2014 11:25:53 +0000 (12:25 +0100)]
Merge pull request #2197 from linquize/assert-wrong
Fix wrong assertion
Linquize [Fri, 21 Mar 2014 09:36:34 +0000 (17:36 +0800)]
Fix wrong assertion
Fixes issue #2196
Vicent Marti [Thu, 20 Mar 2014 20:06:23 +0000 (21:06 +0100)]
Merge pull request #2195 from libgit2/cmn/revwalk-no-hide
revwalk: don't try to find merge bases when there can be none
Carlos Martín Nieto [Thu, 20 Mar 2014 19:24:11 +0000 (20:24 +0100)]
revwalk: don't try to find merge bases when there can be none
As a way to speed up the cases where we need to hide some commits, we
find out what the merge bases are so we know to stop marking commits as
uninteresting and avoid walking down a potentially very large amount of
commits which we will never see. There are however two oversights in
current code.
The merge-base finding algorithm fails to recognize that if it is only
given one commit, there can be no merge base. It instead walks down the
whole ancestor chain needlessly. Make it return an empty list
immediately in this situation.
The revwalk does not know whether the user has asked to hide any commits
at all. In situation where the user pushes multiple commits but doesn't
hide any, the above fix wouldn't do the trick. Keep track of whether the
user wants to hide any commits and only run the merge-base finding
algorithm when it's needed.
Vicent Marti [Thu, 20 Mar 2014 19:08:01 +0000 (20:08 +0100)]
Merge pull request #2194 from libgit2/cmn/reflog-bare
reflog: follow core.logallrefupdates
Carlos Martín Nieto [Thu, 20 Mar 2014 08:55:47 +0000 (09:55 +0100)]
reflog: remove some dead code
Carlos Martín Nieto [Wed, 19 Mar 2014 21:27:23 +0000 (22:27 +0100)]
reflog: follow core.logallrefupdates
On bare by default, or when core.logallrefupdates is false, we must not
write the reflog.
Vicent Marti [Wed, 19 Mar 2014 18:51:57 +0000 (19:51 +0100)]
Merge pull request #2193 from libgit2/cmn/reflog-HEAD
Reflog all the way
Carlos Martín Nieto [Wed, 19 Mar 2014 17:14:35 +0000 (18:14 +0100)]
reflog: handle symref chains
Given HEAD -> master -> foo, when updating foo's reflog we should also
update HEAD's, as it's considered the current branch.
Carlos Martín Nieto [Wed, 19 Mar 2014 15:30:37 +0000 (16:30 +0100)]
reflog: handle the birth of a branch
The reflog append function was overzealous in its checking. When passed
an old and new ids, it should not do any checking, but just serialize
the data to a reflog entry.
Carlos Martín Nieto [Wed, 19 Mar 2014 05:59:09 +0000 (06:59 +0100)]
reflog: simplify the append logic
Remove some duplicated logic.
Carlos Martín Nieto [Tue, 18 Mar 2014 21:16:58 +0000 (22:16 +0100)]
refdb: don't update when there's no need
If the caller wants to update a ref to point to the same target as it
currently has, we should return early and avoid writing to the reflog.
Carlos Martín Nieto [Tue, 18 Mar 2014 18:41:03 +0000 (19:41 +0100)]
reflog: more comprehensive HEAD tests
The existing ones lack checking zeroed ids when switching back from an
unborn branch as well as what happens when detaching.
The reflog appending function mistakenly wrote zeros when dealing with a
detached HEAD. This explicitly checks for those situations and fixes
them.
Vicent Marti [Tue, 18 Mar 2014 15:23:51 +0000 (16:23 +0100)]
Merge pull request #2189 from Aimeast/octopus
Implement git_merge_base_octopus
Aimeast [Tue, 18 Mar 2014 14:31:14 +0000 (22:31 +0800)]
Implement git_merge_base_octopus
Vicent Marti [Tue, 18 Mar 2014 14:25:43 +0000 (15:25 +0100)]
Merge pull request #2192 from phkelley/development
Seamless support for NTLM/Kerberos auth on Windows
Philip Kelley [Tue, 18 Mar 2014 13:04:33 +0000 (09:04 -0400)]
Seamless support for NTLM/Kerberos auth on Windows
Vicent Marti [Tue, 18 Mar 2014 13:46:42 +0000 (14:46 +0100)]
Merge pull request #2190 from libgit2/cmn/current-branch-reflog
refs: append to the HEAD reflog when updating the current branch
Russell Belfer [Mon, 17 Mar 2014 22:57:25 +0000 (15:57 -0700)]
Merge pull request #2191 from libgit2/cmn/projects
Add a few projects to the list
Carlos Martín Nieto [Mon, 17 Mar 2014 18:44:07 +0000 (19:44 +0100)]
Add a few projects to the list
Carlos Martín Nieto [Wed, 15 Jan 2014 12:19:48 +0000 (13:19 +0100)]
refs: append to the HEAD reflog when updating the current branch
When we update the current branch, we must also append to HEAD's reflog
to keep them in sync.
This is a bit of a hack, but as git.git says, it covers 100% of
default cases.
Carlos Martín Nieto [Mon, 17 Mar 2014 16:36:51 +0000 (17:36 +0100)]
repo: remove test which deletes HEAD
This is not something anybody would ever do; removing HEAD makes the
.git/ directory no longer be a repository, so we wouldn't be expected to
handle such a situation.
Carlos Martín Nieto [Mon, 17 Mar 2014 15:10:33 +0000 (16:10 +0100)]
branch: constness fixes
Carlos Martín Nieto [Thu, 13 Mar 2014 14:54:53 +0000 (15:54 +0100)]
refs: fix copy-paste doc error
Edward Thomson [Wed, 12 Mar 2014 19:05:35 +0000 (12:05 -0700)]
Merge pull request #2184 from libgit2/rb/fix-revwalk-order-regression
Fix pqueue sort boundary condition bug
Russell Belfer [Wed, 12 Mar 2014 18:21:55 +0000 (11:21 -0700)]
Fix pqueue sort boundary condition bug
If the pqueue comparison fn returned just 0 or 1 (think "a<b")
then the sort order of returned items could be wrong because there
was a "< 0" that really needed to be "<= 0". Yikes!!!
Carlos Martín Nieto [Mon, 10 Mar 2014 17:20:47 +0000 (18:20 +0100)]
MSVC is silly
Vicent Marti [Mon, 10 Mar 2014 17:16:56 +0000 (18:16 +0100)]
Merge pull request #2175 from Yogu/submodule-resolve-url
Add git_submodule_resolve_url()
Jan Melcher [Mon, 10 Mar 2014 17:16:10 +0000 (18:16 +0100)]
Add git_submodule_resolve_url()
Paul Betts [Mon, 10 Mar 2014 04:07:18 +0000 (21:07 -0700)]
Merge pull request #2177 from shiftkey/typo-fix
corrected typo in error message
Brendan Forster [Mon, 10 Mar 2014 03:40:07 +0000 (14:40 +1100)]
corrected typo in error message
Vicent Marti [Fri, 7 Mar 2014 19:00:20 +0000 (20:00 +0100)]
Merge pull request #2170 from ethomson/clar
Update clar to
e1990d6
Edward Thomson [Fri, 7 Mar 2014 18:53:00 +0000 (10:53 -0800)]
Vicent Marti [Fri, 7 Mar 2014 18:02:58 +0000 (19:02 +0100)]
Merge pull request #2028 from libgit2/options-names
Rename options structures
Russell Belfer [Fri, 7 Mar 2014 17:13:43 +0000 (09:13 -0800)]
Merge pull request #2153 from mekishizufu/tag_example
Add a tag example
Vicent Marti [Fri, 7 Mar 2014 15:26:58 +0000 (16:26 +0100)]
Merge pull request #2167 from mekishizufu/memory_access_fixes
Fun with memory access
Vicent Marti [Fri, 7 Mar 2014 15:26:51 +0000 (16:26 +0100)]
Merge pull request #2169 from libgit2/valgrind
Plug leaks
Carlos Martín Nieto [Wed, 5 Mar 2014 19:28:49 +0000 (20:28 +0100)]
Plug a few leaks in the tests
Carlos Martín Nieto [Fri, 7 Mar 2014 14:40:53 +0000 (15:40 +0100)]
branch: fix leak when checking against HEAD
We look up a reference in order to figure out if it's the current
branch, which we need to free once we're done with the check.
As a bonus, only perform the check when we're passed the force flag, as
it's a useless check otherwise.
Carlos Martín Nieto [Fri, 7 Mar 2014 14:17:08 +0000 (15:17 +0100)]
commit: simplify and correct refcounting in nth_gen_ancestor
We can make use of git_object_dup to use refcounting instead of pointer
comparison to make sure we don't free the caller's object.
This also lets us simplify the case for '~0' which is now just an
assignment instead of looking up the object we have at hand.
Carlos Martín Nieto [Fri, 7 Mar 2014 13:58:43 +0000 (14:58 +0100)]
local transport: catch double-opens
Combinations of connect + fetch can call local_open multiple
times. Detect this and skip the initialization stage.
Jiri Pospisil [Thu, 6 Mar 2014 21:23:57 +0000 (22:23 +0100)]
blame: Fix compare function's data types
Previously the hunk_byfinalline_search_cmp function was called with different
data types (size_t and uint32_t) for the key argument but expected only the
former resulting in an invalid memory access when passed the latter on a 64 bit
machine.
The following patch makes sure that the function is called and works with the
same type (size_t).
Jiri Pospisil [Thu, 6 Mar 2014 21:10:17 +0000 (22:10 +0100)]
git_oid_fromstrn: Simplify the implementation and fix memory access issues
Vicent Marti [Fri, 7 Mar 2014 13:00:59 +0000 (14:00 +0100)]
Merge pull request #2168 from ethomson/clar
Update clar to
a0b00f0
Edward Thomson [Fri, 7 Mar 2014 08:28:18 +0000 (00:28 -0800)]
Ben Straub [Sat, 4 Jan 2014 01:42:09 +0000 (17:42 -0800)]
git_revert_opts -> git_revert_options
Ben Straub [Sat, 4 Jan 2014 01:38:34 +0000 (17:38 -0800)]
git_checkout_opts -> git_checkout_options
Carlos Martín Nieto [Thu, 6 Mar 2014 15:40:34 +0000 (16:40 +0100)]
tests: MSVC compat
MSVC doesn't like declaring variables in the middle of a block, so make
sure we only declare variables at the beginning of a block.
Vicent Marti [Thu, 6 Mar 2014 15:08:36 +0000 (16:08 +0100)]
Merge pull request #2165 from libgit2/revert-1997
Revert pull request #1997
Vicent Marti [Thu, 6 Mar 2014 15:08:17 +0000 (16:08 +0100)]
Revert pull request #1997
Vicent Marti [Thu, 6 Mar 2014 15:08:12 +0000 (16:08 +0100)]
Merge pull request #1997 from mgbowen/merge-options-init-fix
Fix GIT_MERGE_OPTS_INIT on MSVC.
Vicent Marti [Thu, 6 Mar 2014 12:14:15 +0000 (13:14 +0100)]
Merge pull request #2014 from mgbowen/cpp-options-init
Function-based options initializers
Ben Straub [Thu, 6 Mar 2014 03:50:23 +0000 (19:50 -0800)]
Merge pull request #2162 from sunheehnus/dev
examples/diff:Add the shortstat flag to examples/diff.c
Sun He [Thu, 6 Mar 2014 03:16:36 +0000 (11:16 +0800)]
Merge completed: resolve the conflict with the upstream
Matthew Bowen [Thu, 6 Mar 2014 02:49:23 +0000 (21:49 -0500)]
Added function-based initializers for every options struct.
The basic structure of each function is courtesy of arrbee.
Vicent Marti [Wed, 5 Mar 2014 23:47:05 +0000 (00:47 +0100)]
Merge pull request #2159 from libgit2/rb/odb-exists-prefix
Add ODB API to check for existence by prefix and object id shortener
Russell Belfer [Wed, 5 Mar 2014 21:06:22 +0000 (13:06 -0800)]
Check short OID len in odb, not in backends
Vicent Marti [Wed, 5 Mar 2014 20:07:20 +0000 (21:07 +0100)]
Merge pull request #2164 from libgit2/cmn/refs-delete-iteration
refdb: catch a directory disappearing
Vicent Marti [Wed, 5 Mar 2014 20:06:59 +0000 (21:06 +0100)]
Merge pull request #2163 from ethomson/nobackend_odb_write
ODB writing fails gracefully when unsupported
Carlos Martín Nieto [Wed, 5 Mar 2014 19:32:53 +0000 (20:32 +0100)]
refdb: catch a directory disappearing
If a directory disappears between the time we look up the entries of its
parent and the time when we go to look at it, we should ignore the error
and move forward.
This fixes #2046.
Edward Thomson [Wed, 5 Mar 2014 19:35:47 +0000 (11:35 -0800)]
ODB writing fails gracefully when unsupported
If no ODB backends support writing, we should fail gracefully.
Jiri Pospisil [Wed, 5 Mar 2014 19:26:13 +0000 (20:26 +0100)]
Move all variable declarations to the top of the block
Jiri Pospisil [Mon, 3 Mar 2014 22:56:43 +0000 (23:56 +0100)]
Add tag example
Jiri Pospisil [Mon, 3 Mar 2014 22:36:34 +0000 (23:36 +0100)]
Fix typo
Sun He [Wed, 5 Mar 2014 12:33:20 +0000 (20:33 +0800)]
fix the output format of diff
Sun He [Wed, 5 Mar 2014 12:13:34 +0000 (20:13 +0800)]
Add the --shortstat flag to examples/diff.c
Vicent Marti [Wed, 5 Mar 2014 10:42:50 +0000 (11:42 +0100)]
Merge pull request #2160 from modocache/examples-diff-add-patience-and-minimal
examples/diff: Add minimal, patience diff options.
Vicent Marti [Wed, 5 Mar 2014 10:37:08 +0000 (11:37 +0100)]
Merge pull request #2161 from softwarenerd/softwarenerd
Fixed missing error check on call to git_remote_download
Brian Lambert [Wed, 5 Mar 2014 05:00:41 +0000 (00:00 -0500)]
Fixed missing error check on call to git_remote_download in git_remote_fetch. Moved error check to statement following git_remote_disconnect so that the disconnect happens regardless of the result of the download call.
Brian Gesiak [Wed, 5 Mar 2014 04:06:31 +0000 (13:06 +0900)]
examples/diff: Add minimal, patience diff options.
- Add minimal, patience diff options to diff example. libgit2
`diff_xdiff.git_xdiff_init` already supports these flags, so
no additional change is necessary.
- Remove minimal and patience flag addition from project list.
Russell Belfer [Wed, 5 Mar 2014 00:23:28 +0000 (16:23 -0800)]
Add git_object_short_id API to get short id string
This finds a short id string that will unambiguously select the
given object, starting with the core.abbrev length (usually 7)
and growing until it is no longer ambiguous.
Russell Belfer [Tue, 4 Mar 2014 23:34:23 +0000 (15:34 -0800)]
Add exists_prefix to ODB backend and ODB API
Vicent Marti [Tue, 4 Mar 2014 20:01:39 +0000 (21:01 +0100)]
Merge pull request #2157 from libgit2/cmn/write-object-mem
pack-objects: free memory safely
Carlos Martín Nieto [Tue, 4 Mar 2014 19:09:17 +0000 (20:09 +0100)]
pack-objects: free memory safely
A few fixes have accumulated in this area which have made the freeing of
data a bit muddy. Make sure to free the data only when needed and once.
When we are going to write a delta to the packfile, we need to free the
data, otherwise leave it. The current version of the code mixes up the
checks for po->data and po->delta_data.
Russell Belfer [Tue, 4 Mar 2014 18:21:41 +0000 (10:21 -0800)]
Merge pull request #2155 from jacquesg/stash-save-remove-ignored
Remove ignored files from the working directory if they were stashed
Jacques Germishuys [Tue, 4 Mar 2014 10:22:27 +0000 (12:22 +0200)]
Remove ignored files from the working directory if they were stashed
Vicent Marti [Mon, 3 Mar 2014 16:48:32 +0000 (17:48 +0100)]
Merge pull request #2148 from fourplusone/patch-1
Added a test, that fails for #2133
Matthias Bartelmeß [Sat, 1 Mar 2014 15:53:47 +0000 (16:53 +0100)]
Added a test, that fails for #2133
Vicent Marti [Mon, 3 Mar 2014 14:05:26 +0000 (15:05 +0100)]
Merge pull request #2141 from ravselj/development
BUGFIX - Fetching twice from the same remote causes a segfault
Miha Ravšelj [Mon, 3 Mar 2014 13:59:50 +0000 (14:59 +0100)]
- examples CMakeLists.txt reverted to previous state
Vicent Marti [Mon, 3 Mar 2014 12:12:27 +0000 (13:12 +0100)]
Merge pull request #2151 from arthurschreiber/patch-3
Fix the description for `GIT_FEATURE_SSH`.
Arthur Schreiber [Mon, 3 Mar 2014 11:59:35 +0000 (12:59 +0100)]
Fix the description for `GIT_FEATURE_SSH`.
Vicent Marti [Mon, 3 Mar 2014 11:45:46 +0000 (12:45 +0100)]
Merge pull request #2150 from libgit2/vmg/features
caps: Rename to features to avoid confusion
Vicent Marti [Mon, 3 Mar 2014 11:40:25 +0000 (12:40 +0100)]
features: Rename `_HAS_` to `_FEATURE_`
Vicent Marti [Mon, 3 Mar 2014 11:13:17 +0000 (12:13 +0100)]
caps: Rename the enum name too!
Vicent Marti [Mon, 3 Mar 2014 11:09:17 +0000 (12:09 +0100)]
caps: Rename to features to avoid confusion
Miha [Mon, 3 Mar 2014 11:08:17 +0000 (12:08 +0100)]
cmake examples change so that general.c is off by default
Miha [Mon, 3 Mar 2014 10:47:06 +0000 (11:47 +0100)]
- CMakeLists.txt small fix
Miha [Mon, 3 Mar 2014 10:42:25 +0000 (11:42 +0100)]
- general.c reverted to original( before pr state )
Miha [Mon, 3 Mar 2014 10:40:22 +0000 (11:40 +0100)]
Merge remote-tracking branch 'remotes/upstream/development' into development
Ben Straub [Sun, 2 Mar 2014 15:00:00 +0000 (09:00 -0600)]
Merge pull request #2144 from linquize/branch-f-current
Do not allow git_branch_create() to force update branch
Linquize [Sun, 2 Mar 2014 11:14:20 +0000 (19:14 +0800)]
Add unit test to show git_branch_create() fails if attempt to force create current branch
Vicent Marti [Sat, 1 Mar 2014 17:06:49 +0000 (18:06 +0100)]
Merge pull request #2143 from libgit2/rb/projects
Add project list and update readme
Vicent Marti [Fri, 28 Feb 2014 08:40:17 +0000 (09:40 +0100)]
Merge pull request #2146 from libgit2/rb/diff-b2b
Add git_diff_buffers and git_patch_from_buffers
Russell Belfer [Thu, 27 Feb 2014 22:13:22 +0000 (14:13 -0800)]
Add buffer to buffer diff and patch APIs
This adds `git_diff_buffers` and `git_patch_from_buffers`. This
also includes a bunch of internal refactoring to increase the
shared code between these functions and the blob-to-blob and
blob-to-buffer APIs, as well as some higher level assert helpers
in the tests to also remove redundancy.
Russell Belfer [Thu, 27 Feb 2014 22:01:16 +0000 (14:01 -0800)]
Fix warnings and code style issues