]> git.proxmox.com Git - libgit2.git/log
libgit2.git
10 years agoIntroduce git_path_make_relative
Edward Thomson [Wed, 20 Aug 2014 14:23:39 +0000 (10:23 -0400)]
Introduce git_path_make_relative

10 years agoMerge pull request #2550 from KindDragon/patch-2
Vicent Marti [Tue, 2 Sep 2014 22:15:47 +0000 (00:15 +0200)]
Merge pull request #2550 from KindDragon/patch-2

.editorconfig added to repository

10 years agoMerge pull request #2545 from linquize/no-ssh
Vicent Marti [Tue, 2 Sep 2014 22:13:23 +0000 (00:13 +0200)]
Merge pull request #2545 from linquize/no-ssh

Skip SSH clone tests if libgit2 not built with GIT_SSH defined

10 years ago.editorconfig added to repository
Arkadiy Shapkin [Tue, 2 Sep 2014 17:42:45 +0000 (21:42 +0400)]
.editorconfig added to repository

10 years agoMerge pull request #2548 from linquize/warning5
Vicent Marti [Mon, 1 Sep 2014 16:29:54 +0000 (18:29 +0200)]
Merge pull request #2548 from linquize/warning5

Fix warning

10 years agoFix warning
Linquize [Mon, 1 Sep 2014 15:36:12 +0000 (23:36 +0800)]
Fix warning

10 years agoSkip SSH clone tests if libgit2 not built with GIT_SSH defined
Linquize [Mon, 1 Sep 2014 11:18:20 +0000 (19:18 +0800)]
Skip SSH clone tests if libgit2 not built with GIT_SSH defined

10 years agoMerge pull request #2544 from linquize/test-push
Vicent Marti [Sun, 31 Aug 2014 15:47:14 +0000 (17:47 +0200)]
Merge pull request #2544 from linquize/test-push

MSVC does not support zero size array

10 years agoMSVC does not support zero size array
Linquize [Sun, 31 Aug 2014 14:43:53 +0000 (22:43 +0800)]
MSVC does not support zero size array

10 years agoMerge pull request #2481 from libgit2/cmn/oidarray
Vicent Marti [Fri, 29 Aug 2014 16:19:56 +0000 (18:19 +0200)]
Merge pull request #2481 from libgit2/cmn/oidarray

merge: expose multiple merge bases

10 years agoMerge pull request #2539 from libgit2/cmn/ahead-behind-order
Vicent Marti [Thu, 28 Aug 2014 14:33:53 +0000 (16:33 +0200)]
Merge pull request #2539 from libgit2/cmn/ahead-behind-order

Fix ahead-behind results

10 years agograph: fix ahead-behind logic
Carlos Martín Nieto [Thu, 28 Aug 2014 11:36:58 +0000 (13:36 +0200)]
graph: fix ahead-behind logic

When we see PARENT1, it means there is a local commit and thus we are
ahead. Likewise, seeing PARENT2 means that the upstream branch has a
commit and we are one more behind.

The logic is currently reversed. Correct it.

This fixes #2501.

10 years agoFix ahead-behind tests
Carlos Martín Nieto [Thu, 28 Aug 2014 11:34:42 +0000 (13:34 +0200)]
Fix ahead-behind tests

The logic was reversed. I have checked manually each pair with git and
adjusted the expectation to what git status prints.

10 years agoMerge pull request #2538 from libgit2/ntk/propagate_url_parsing_error
Vicent Marti [Wed, 27 Aug 2014 17:19:55 +0000 (19:19 +0200)]
Merge pull request #2538 from libgit2/ntk/propagate_url_parsing_error

winhttp: Prevent swallowing of url parsing error

10 years agoMerge pull request #2502 from rnowosielski/remote_set_timeout
Vicent Marti [Wed, 27 Aug 2014 17:18:46 +0000 (19:18 +0200)]
Merge pull request #2502 from rnowosielski/remote_set_timeout

Set timeout on remote (Add timeout for WinHttpReceiveResponse #2147)

10 years agoMerge pull request #2490 from csware/ssh-wintunnel
Vicent Marti [Wed, 27 Aug 2014 16:02:10 +0000 (18:02 +0200)]
Merge pull request #2490 from csware/ssh-wintunnel

Allow to override default ssh transport_cb - in order to allow third party ssh transports

10 years agowinhttp: Prevent swallowing of url parsing error
nulltoken [Wed, 27 Aug 2014 08:28:46 +0000 (10:28 +0200)]
winhttp: Prevent swallowing of url parsing error

10 years agoAdded some tests
Sven Strickroth [Tue, 26 Aug 2014 15:28:41 +0000 (17:28 +0200)]
Added some tests

Signed-off-by: Sven Strickroth <email@cs-ware.de>
10 years agoAdjust clone tests to USERNAME cred type
Carlos Martín Nieto [Wed, 27 Aug 2014 13:25:46 +0000 (15:25 +0200)]
Adjust clone tests to USERNAME cred type

10 years agoMerge branch 'cmn/ssh-retry'
Carlos Martín Nieto [Wed, 27 Aug 2014 13:10:51 +0000 (15:10 +0200)]
Merge branch 'cmn/ssh-retry'

10 years agoAdd ssh retry changes to CHANGELOG
Carlos Martín Nieto [Wed, 27 Aug 2014 13:10:43 +0000 (15:10 +0200)]
Add ssh retry changes to CHANGELOG

10 years agoMerge remote-tracking branch 'upstream/master' into cmn/ssh-retry
Carlos Martín Nieto [Wed, 27 Aug 2014 13:09:07 +0000 (15:09 +0200)]
Merge remote-tracking branch 'upstream/master' into cmn/ssh-retry

10 years agoSet timeout on remote (WinHTTP) should return error in case of failure. Connection...
Rafal Nowosielski [Tue, 26 Aug 2014 23:30:47 +0000 (01:30 +0200)]
Set timeout on remote (WinHTTP) should return error in case of failure. Connection timeout set to 1 minute. Read/Write timeout remains set to infinite #2147

10 years agoMerge pull request #2537 from libgit2/reduce-cache-contention
Vicent Marti [Tue, 26 Aug 2014 23:16:11 +0000 (01:16 +0200)]
Merge pull request #2537 from libgit2/reduce-cache-contention

Refactor git_cache to use an rwlock

10 years agoRefactor git_cache to use an rwlock
Justin Spahr-Summers [Tue, 26 Aug 2014 22:12:43 +0000 (15:12 -0700)]
Refactor git_cache to use an rwlock

This significantly reduces contention when many threads are trying to
read from the cache simultaneously.

10 years agoMerge pull request #2508 from libgit2/rb/fix-ignore-slash-star
Vicent Marti [Tue, 26 Aug 2014 15:48:20 +0000 (17:48 +0200)]
Merge pull request #2508 from libgit2/rb/fix-ignore-slash-star

Fix bugs with negative ignores inside an ignored parent directory

10 years agoMerge pull request #2533 from jakebolewski/jcb/addjulia
Vicent Marti [Tue, 26 Aug 2014 15:46:52 +0000 (17:46 +0200)]
Merge pull request #2533 from jakebolewski/jcb/addjulia

add Julia to the language bindings list

10 years agoMerge pull request #2535 from libgit2/cmn/unpack-offset
Vicent Marti [Tue, 26 Aug 2014 15:45:07 +0000 (17:45 +0200)]
Merge pull request #2535 from libgit2/cmn/unpack-offset

pack: return the correct final offset

10 years agoAllow to override default ssh transport_cb
Sven Strickroth [Tue, 29 Jul 2014 23:41:43 +0000 (01:41 +0200)]
Allow to override default ssh transport_cb

W/o this patch it is not possible to have a third party ssh transport_cb if GIT_SSH is disabled or a third party transport_cb which has a higher priority than the default one.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
10 years agopack: return the correct final offset
Carlos Martín Nieto [Tue, 26 Aug 2014 13:09:47 +0000 (15:09 +0200)]
pack: return the correct final offset

The callers of git_packfile_unpack() expect the obj_offset argument to
be set to the beginning of the next object. We were mistakenly returning
the the offset of the object's data, which causes the CRC function to
try to use the wrong offset.

Set obj_offset to curpos instead of elem->offset to point to the next
element and bring back expected behaviour.

10 years agoadd Julia to the language bindings list
jake bolewski [Tue, 26 Aug 2014 00:50:06 +0000 (20:50 -0400)]
add Julia to the language bindings list

10 years agoMerge pull request #2532 from arthurschreiber/arthur/fix-merge-base-commit-check
Vicent Marti [Mon, 25 Aug 2014 21:06:34 +0000 (23:06 +0200)]
Merge pull request #2532 from arthurschreiber/arthur/fix-merge-base-commit-check

merge base: Correctly raise an error if a non-commit object is passed.

10 years agomerge base: Correctly raise an error if a non-commit object is passed.
Arthur Schreiber [Mon, 25 Aug 2014 20:41:07 +0000 (22:41 +0200)]
merge base: Correctly raise an error if a non-commit object is passed.

10 years agoMerge pull request #2531 from libgit2/rb/mkdir-allow-parent-failures
Vicent Marti [Mon, 25 Aug 2014 19:04:09 +0000 (21:04 +0200)]
Merge pull request #2531 from libgit2/rb/mkdir-allow-parent-failures

Allow mkdir helper to skip parent errors

10 years agoMerge pull request #2527 from jacquesg/refspec-crash
Vicent Marti [Mon, 25 Aug 2014 16:18:06 +0000 (18:18 +0200)]
Merge pull request #2527 from jacquesg/refspec-crash

Check if the refspec matches before transforming

10 years agoSet timeout on remote (WinHTTP) to infinite #2147
Rafal Nowosielski [Thu, 24 Jul 2014 02:15:24 +0000 (04:15 +0200)]
Set timeout on remote (WinHTTP) to infinite #2147

10 years agoAllow mkdir helper to skip parent errors
Russell Belfer [Fri, 22 Aug 2014 17:05:09 +0000 (10:05 -0700)]
Allow mkdir helper to skip parent errors

Our mkdir helper was failing is a parent directory was not
accessible even if the child directory could be created.
This changes the helper to keep trying child directories
even when the parent is unwritable.

10 years agoCheck that the refspec matches before modifying the out buffer
Jacques Germishuys [Thu, 21 Aug 2014 16:53:43 +0000 (18:53 +0200)]
Check that the refspec matches before modifying the out buffer

10 years agoMerge pull request #2528 from libgit2/vmg/tostr_s
Vicent Marti [Mon, 18 Aug 2014 13:18:59 +0000 (15:18 +0200)]
Merge pull request #2528 from libgit2/vmg/tostr_s

Export `git_oid_tostr_s` instead of `_allocfmt`

10 years agoRevert "test: Remove symlinks from the source tree"
Vicent Marti [Mon, 18 Aug 2014 13:18:47 +0000 (15:18 +0200)]
Revert "test: Remove symlinks from the source tree"

This reverts commit 0dc54e149498bbd5de5e5ecc6006f9f5afb6588c.

10 years agotest: Remove symlinks from the source tree
Vicent Marti [Mon, 18 Aug 2014 10:44:41 +0000 (12:44 +0200)]
test: Remove symlinks from the source tree

We don't really use this at all, and it breaks packaging in Windows.

10 years agooid: Export `git_oid_tostr_s` instead of `_allocfmt`
Vicent Marti [Mon, 18 Aug 2014 10:41:06 +0000 (12:41 +0200)]
oid: Export `git_oid_tostr_s` instead of `_allocfmt`

The old `allocfmt` is of no use to callers, as they are not able to free
the returned buffer. Export a new API that returns a static string that
doesn't need to be freed.

10 years agoMerge pull request #2525 from libgit2/cmn/http-recv-buffer
Vicent Marti [Mon, 18 Aug 2014 10:26:18 +0000 (12:26 +0200)]
Merge pull request #2525 from libgit2/cmn/http-recv-buffer

http: make sure we can consume the data we request

10 years agoMerge pull request #2523 from leighlondon/remove-completed-project
Vicent Marti [Mon, 18 Aug 2014 10:25:50 +0000 (12:25 +0200)]
Merge pull request #2523 from leighlondon/remove-completed-project

Removing a completed starter project.

10 years agoCheck if the refspec matches before transforming
Jacques Germishuys [Sun, 17 Aug 2014 12:55:06 +0000 (14:55 +0200)]
Check if the refspec matches before transforming

10 years agohttp: make sure we can consume the data we request
Carlos Martín Nieto [Sat, 16 Aug 2014 20:12:13 +0000 (22:12 +0200)]
http: make sure we can consume the data we request

The recv buffer (parse_buffer) and the buffer have independent sizes and
offsets. We try to fill in parse_buffer as much as possible before
passing it to the http parser. This is fine most of the time, but fails
us when the buffer is almost full.

In those situations, parse_buffer can have more data than we would be
able to put into the buffer (which may be getting full if we're towards
the end of a data sideband packet).

To work around this, we check if the space we have left on our buffer is
smaller than what could come from the network. If this happens, we make
parse_buffer think that it has as much space left as our buffer, so it
won't try to retrieve more data than we can deal with.

As the start of the data may no longer be at the start of the buffer, we
need to keep track of where it really starts (data_offset) and use that
in our calculations for the real size of the data we received from the
network.

This fixes #2518.

10 years agoRemoving a completed starter project.
Leigh London [Sat, 16 Aug 2014 09:13:21 +0000 (19:13 +1000)]
Removing a completed starter project.

Removing the starter project for adding support for the symref
extension (#2006) from PROJECTS.md, as this seems to have been
completed with the merge of #2376.

10 years agoMerge pull request #2521 from jacquesg/remote-ls-not-connected
Vicent Marti [Fri, 15 Aug 2014 21:10:45 +0000 (23:10 +0200)]
Merge pull request #2521 from jacquesg/remote-ls-not-connected

git_remote_ls() crashes before connect is called

10 years agogit_remote_ls() should return an error if the transport is not available
Jacques Germishuys [Fri, 15 Aug 2014 20:51:19 +0000 (22:51 +0200)]
git_remote_ls() should return an error if the transport is not available

10 years agoMerge pull request #2497 from ethomson/kerberos3
Vicent Marti [Fri, 15 Aug 2014 18:33:38 +0000 (20:33 +0200)]
Merge pull request #2497 from ethomson/kerberos3

SPNEGO authentication via GSSAPI

10 years agoIntroduce proper http authentication API
Edward Thomson [Thu, 14 Aug 2014 16:52:20 +0000 (11:52 -0500)]
Introduce proper http authentication API

10 years agoAdd GSSAPI support for SPNEGO/Kerberos auth over HTTP
Edward Thomson [Thu, 31 Jul 2014 22:43:20 +0000 (18:43 -0400)]
Add GSSAPI support for SPNEGO/Kerberos auth over HTTP

10 years agoIntroduce git_buf_decode_base64
Edward Thomson [Thu, 31 Jul 2014 19:14:56 +0000 (15:14 -0400)]
Introduce git_buf_decode_base64

Decode base64-encoded text into a git_buf

10 years agoPerform HTTP keep-alive
Edward Thomson [Thu, 31 Jul 2014 22:39:58 +0000 (18:39 -0400)]
Perform HTTP keep-alive

10 years agoonline::clone::credentials support default credentials
Edward Thomson [Fri, 1 Aug 2014 17:06:37 +0000 (13:06 -0400)]
online::clone::credentials support default credentials

10 years agoFree references during push validation
Edward Thomson [Fri, 15 Aug 2014 15:10:27 +0000 (11:10 -0400)]
Free references during push validation

10 years agoRemove the refs/notes/commits that we push in test
Edward Thomson [Fri, 1 Aug 2014 17:43:46 +0000 (13:43 -0400)]
Remove the refs/notes/commits that we push in test

The online::push::notes test pushes a note but leaves it hanging
around for other tests to stumble across when they're validating
that they're seeing the refs they expect to see.  Clean it up on
exit.

10 years agoDon't run the ssh clone tests against http remotes
Edward Thomson [Thu, 31 Jul 2014 21:59:03 +0000 (17:59 -0400)]
Don't run the ssh clone tests against http remotes

10 years agoMerge pull request #2469 from ethomson/transport2
Vicent Marti [Thu, 14 Aug 2014 15:01:02 +0000 (17:01 +0200)]
Merge pull request #2469 from ethomson/transport2

Custom transport: minor cleanups

10 years agoCustom transport: minor cleanups
Edward Thomson [Wed, 9 Jul 2014 21:58:39 +0000 (17:58 -0400)]
Custom transport: minor cleanups

 * Move the transport registration mechanisms into a new header under
   'sys/' because this is advanced stuff.
 * Remove the 'priority' argument from the registration as it adds
   unnecessary complexity.  (Since transports cannot decline to operate,
   only the highest priority transport is ever executed.)  Users who
   require per-priority transports can implement that in their custom
   transport themselves.
 * Simplify registration further by taking a scheme (eg "http") instead
   of a prefix (eg "http://").

10 years agoMerge pull request #2517 from ethomson/no_win_unreadable
Vicent Marti [Wed, 13 Aug 2014 21:38:53 +0000 (23:38 +0200)]
Merge pull request #2517 from ethomson/no_win_unreadable

Don't include the unreadable tests on win32

10 years agoDon't include the unreadable tests on win32
Edward Thomson [Wed, 13 Aug 2014 21:23:07 +0000 (17:23 -0400)]
Don't include the unreadable tests on win32

10 years agoMerge pull request #2513 from ethomson/giterr_null_msg
Vicent Marti [Wed, 13 Aug 2014 19:23:23 +0000 (21:23 +0200)]
Merge pull request #2513 from ethomson/giterr_null_msg

Allow NULL error message prefix when class=GITERR_OS

10 years agoAllow NULL error message prefix when class=GITERR_OS
Edward Thomson [Wed, 13 Aug 2014 18:55:24 +0000 (14:55 -0400)]
Allow NULL error message prefix when class=GITERR_OS

10 years agoMerge pull request #2509 from libgit2/cmn/immediate-multiline
Vicent Marti [Sat, 9 Aug 2014 10:24:02 +0000 (12:24 +0200)]
Merge pull request #2509 from libgit2/cmn/immediate-multiline

config: a multiline var can start immediately

10 years agoconfig: a multiline var can start immediately
Carlos Martín Nieto [Sat, 9 Aug 2014 08:56:50 +0000 (10:56 +0200)]
config: a multiline var can start immediately

In the check for multiline, we traverse the backslashes from the end
backwards and int the end assert that we haven't gone past the beginning
of the line. We make sure of this in the loop condition, but we also
check in the return value.

However, for certain configurations, a line in a multiline variable
might be empty to aid formatting. In that case, 'end' == 'start', since
we ended up looking at the first char which made it a multiline.

There is no need for the (end > start) check in the return, since the
loop guarantees we won't go further back than the first char in the
line, and we do accept the first char to be the final backslash.

This fixes #2483.

10 years agoMerge pull request #2507 from libgit2/rb/timer-typo
Vicent Marti [Fri, 8 Aug 2014 22:35:08 +0000 (00:35 +0200)]
Merge pull request #2507 from libgit2/rb/timer-typo

Typo in timer constants

10 years agoDemonstrate a trailing slash failure.
Rob Rix [Thu, 12 Jun 2014 18:19:34 +0000 (14:19 -0400)]
Demonstrate a trailing slash failure.

`git help ignore` has this to say about trailing slashes:

> If the pattern ends with a slash, it is removed for the purpose of
> the following description, but it would only find a match with a
> directory. In other words, foo/ will match a directory foo and
> paths underneath it, but will not match a regular file or a
> symbolic link foo (this is consistent with the way how pathspec
> works in general in Git).

Sure enough, having manually performed the same steps as this test,
`git status` tells us the following:

# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
# new file:   force.txt
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
# ../.gitignore
# child1/
# child2/

i.e. neither child1 nor child2 is ignored.

10 years agoFor negative matches, always use leading dir match
Russell Belfer [Fri, 8 Aug 2014 22:18:40 +0000 (15:18 -0700)]
For negative matches, always use leading dir match

10 years agostatus: failing test with slash-star
Carlos Martín Nieto [Wed, 4 Jun 2014 09:57:53 +0000 (11:57 +0200)]
status: failing test with slash-star

When writing 'bin/*' in the rules, this means we ignore very file inside
bin/ individually, but do not ignore the directory itself. Thus the
status listing should list both files under bin/, one untracked and one
ignored.

10 years agoFix rejection of parent dir of negated ignores
Russell Belfer [Fri, 8 Aug 2014 21:51:36 +0000 (14:51 -0700)]
Fix rejection of parent dir of negated ignores

While scanning through a directory hierarchy, this prevents a
positive ignore match on a parent directory from blocking the scan
of a directory when a negative match rule exists for files inside
the directory.

10 years agoMerge pull request #2506 from libgit2/rb/ignore-pipes-etc
Vicent Marti [Fri, 8 Aug 2014 20:28:27 +0000 (22:28 +0200)]
Merge pull request #2506 from libgit2/rb/ignore-pipes-etc

Don't report status on named pipes

10 years agoDon't report status on named pipes
Russell Belfer [Fri, 8 Aug 2014 20:17:50 +0000 (13:17 -0700)]
Don't report status on named pipes

Git skips entries in directories that are not S_ISDIR, S_ISREG, or
S_ISLNK, so let's make libgit2 do the same thing.

10 years agoMerge pull request #2471 from jacquesg/compatibility-cleanup
Vicent Marti [Thu, 7 Aug 2014 16:00:57 +0000 (18:00 +0200)]
Merge pull request #2471 from jacquesg/compatibility-cleanup

Compatibility/Portability cleanup

10 years agoFix typo in timer normalization constants
Russell Belfer [Tue, 5 Aug 2014 22:06:45 +0000 (15:06 -0700)]
Fix typo in timer normalization constants

The effect of this would be that various update callbacks would
not be made at the correct interval.

10 years agoIntroduce some consistency in definition/declaration ordering
Jacques Germishuys [Sun, 13 Jul 2014 14:40:51 +0000 (16:40 +0200)]
Introduce some consistency in definition/declaration ordering

10 years agoMove p_realpath logic to realpath.c
Jacques Germishuys [Sun, 13 Jul 2014 14:08:46 +0000 (16:08 +0200)]
Move p_realpath logic to realpath.c

10 years agoUse p_snprintf also in tests
Jacques Germishuys [Sat, 12 Jul 2014 12:44:58 +0000 (14:44 +0200)]
Use p_snprintf also in tests

10 years agoConsistently use p_snprintf
Jacques Germishuys [Sat, 12 Jul 2014 12:44:21 +0000 (14:44 +0200)]
Consistently use p_snprintf

10 years agoCleanup portability/compatibility layer
Jacques Germishuys [Sat, 12 Jul 2014 12:45:56 +0000 (14:45 +0200)]
Cleanup portability/compatibility layer

* Removes mingw-compat.h
* Cleans up separation of compiler/platform idiosyncrasies
* Unifies mingw/msvc stat structures and functions
* (Tries to) hide more compiler specific implementation details (even in our internal API)

10 years agoDefine WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH if not defined
Jacques Germishuys [Sat, 12 Jul 2014 12:37:39 +0000 (14:37 +0200)]
Define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH if not defined

10 years agoSilence unused variables warnings
Jacques Germishuys [Sun, 13 Jul 2014 09:50:49 +0000 (11:50 +0200)]
Silence unused variables warnings

10 years agoMerge pull request #2503 from jacquesg/solaris-http-parser
Vicent Marti [Tue, 5 Aug 2014 18:28:22 +0000 (20:28 +0200)]
Merge pull request #2503 from jacquesg/solaris-http-parser

Solaris doesn't necessarily have stdint.h, use inttypes.h

10 years agoSolaris doesn't necessarily have stdint.h, use inttypes.h
Jacques Germishuys [Tue, 5 Aug 2014 17:51:29 +0000 (19:51 +0200)]
Solaris doesn't necessarily have stdint.h, use inttypes.h

10 years agomerge: expose multiple merge bases
Carlos Martín Nieto [Fri, 18 Jul 2014 14:00:21 +0000 (16:00 +0200)]
merge: expose multiple merge bases

We always calculate multiple merge bases, but up to now we had only
exposed the "best" merge base.

Introduce git_oidarray which analogously to git_strarray lets us return
multiple ids.

10 years agoMerge pull request #2487 from libgit2/cmn/revwalk-no-prealloc
Vicent Marti [Fri, 25 Jul 2014 09:27:51 +0000 (11:27 +0200)]
Merge pull request #2487 from libgit2/cmn/revwalk-no-prealloc

Work around strict aliasing in array growth

10 years agoarray: mark the array to grow as volatile
Carlos Martín Nieto [Fri, 25 Jul 2014 06:25:41 +0000 (08:25 +0200)]
array: mark the array to grow as volatile

This works around strict aliasing rules letting some versions of
GCC (particularly on RHEL 6) thinking that they can skip updating the
size of the array when calculating the next element's offset.

10 years agorevwalk: remove preallocation of the uninteresting commits
Carlos Martín Nieto [Thu, 24 Jul 2014 14:46:59 +0000 (16:46 +0200)]
revwalk: remove preallocation of the uninteresting commits

Preallocating two commits doesn't make much sense as leaving allocation
to the first array usage will allocate a sensible size with room for
growth.

This preallocation has also been hiding issues with strict aliasing in
the tests, as we have fairly simple histories and never trigger the
growth.

10 years agoMerge pull request #2477 from ethomson/merge
Vicent Marti [Wed, 23 Jul 2014 07:41:52 +0000 (09:41 +0200)]
Merge pull request #2477 from ethomson/merge

Don't allow conflicts by default

10 years agoMerge pull request #2484 from libgit2/fix-git-status-list-new-unreadable-folder
Vicent Marti [Wed, 23 Jul 2014 05:57:20 +0000 (07:57 +0200)]
Merge pull request #2484 from libgit2/fix-git-status-list-new-unreadable-folder

Fix git status list new unreadable folder

10 years agoundo indentation change in diff_print.c
Alan Rogers [Wed, 23 Jul 2014 02:17:02 +0000 (12:17 +1000)]
undo indentation change in diff_print.c

10 years agoMerge pull request #2485 from ethomson/cherrypick
Vicent Marti [Tue, 22 Jul 2014 18:30:26 +0000 (20:30 +0200)]
Merge pull request #2485 from ethomson/cherrypick

Rename git_cherry_pick to git_cherrypick

10 years agogit_cherry_pick -> git_cherrypick
Edward Thomson [Tue, 22 Jul 2014 14:40:23 +0000 (10:40 -0400)]
git_cherry_pick -> git_cherrypick

10 years agoMerge remote-tracking branch 'origin/master' into fix-git-status-list-new-unreadable...
Alan Rogers [Tue, 22 Jul 2014 05:08:24 +0000 (15:08 +1000)]
Merge remote-tracking branch 'origin/master' into fix-git-status-list-new-unreadable-folder

10 years agoRemove debug printfs.
Alan Rogers [Tue, 22 Jul 2014 01:25:56 +0000 (11:25 +1000)]
Remove debug printfs.

10 years agoMove the UNREADABLE enums to the correct group.
Alan Rogers [Tue, 22 Jul 2014 01:15:33 +0000 (11:15 +1000)]
Move the UNREADABLE enums to the correct group.

10 years agoDon't allow conflicts by default
Edward Thomson [Thu, 17 Jul 2014 05:25:31 +0000 (01:25 -0400)]
Don't allow conflicts by default

10 years agoMerge pull request #2475 from libgit2/expose-buffer-binary-detection
Vicent Marti [Wed, 16 Jul 2014 21:21:53 +0000 (14:21 -0700)]
Merge pull request #2475 from libgit2/expose-buffer-binary-detection

Export git_buf_text_is_binary and git_buf_text_contains_nul.

10 years agoJust put it all in buffer.
joshaber [Wed, 16 Jul 2014 20:34:25 +0000 (13:34 -0700)]
Just put it all in buffer.

10 years agoMerge pull request #2476 from linquize/config-lf-eof
Vicent Marti [Wed, 16 Jul 2014 20:07:17 +0000 (13:07 -0700)]
Merge pull request #2476 from linquize/config-lf-eof

When adding new config section, handle config file not ending with LF