- 09 Aug, 2014 1 commit
-
-
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.
Carlos Martín Nieto committed
-
- 08 Aug, 2014 1 commit
-
-
Git skips entries in directories that are not S_ISDIR, S_ISREG, or S_ISLNK, so let's make libgit2 do the same thing.
Russell Belfer committed
-
- 05 Aug, 2014 7 commits
-
-
The effect of this would be that various update callbacks would not be made at the correct interval.
Russell Belfer committed -
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
* 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)
Jacques Germishuys committed -
Jacques Germishuys committed
-
Jacques Germishuys committed
-
- 25 Jul, 2014 1 commit
-
-
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.
Carlos Martín Nieto committed
-
- 24 Jul, 2014 1 commit
-
-
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.
Carlos Martín Nieto committed
-
- 23 Jul, 2014 1 commit
-
-
Alan Rogers committed
-
- 22 Jul, 2014 2 commits
-
-
Edward Thomson committed
-
Alan Rogers committed
-
- 17 Jul, 2014 1 commit
-
-
Edward Thomson committed
-
- 16 Jul, 2014 5 commits
-
-
joshaber committed
-
Vicent Marti committed
-
Vicent Marti committed
-
Linquize committed
-
So that users don’t need to implement binary detection themselves.
joshaber committed
-
- 13 Jul, 2014 2 commits
-
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
- 11 Jul, 2014 1 commit
-
-
file:///
Windows can't handle a path like `/c:/foo`; when turning file:/// URIs into local paths, we must strip the leading slash.
Edward Thomson committed
-
- 09 Jul, 2014 1 commit
-
-
William Swanson committed
-
- 08 Jul, 2014 1 commit
-
-
Edward Thomson committed
-
- 07 Jul, 2014 1 commit
-
-
git allows you to set which paths to use for the git server programs when connecting over ssh; and we want to provide something similar. We do this by providing a factory function which can be set as the remote's transport callback which will set the given paths upon creation.
Carlos Martín Nieto committed
-
- 06 Jul, 2014 7 commits
-
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
Jacques Germishuys committed
-
- 04 Jul, 2014 2 commits
-
-
We used to assume a refspec would only have an asterisk in the middle of their respective pattern. This has not been a valid assumption for some time now with git. Instead of assuming where the asterisk is going to be, change the logic to treat each pattern as having two halves with a replacement bit in the middle, where the asterisk is.
Carlos Martín Nieto committed -
When transforming a non-pattern refspec, we simply need to copy over the opposite string. Move that logic up to the wrapper so we can assume a pattern refspec in the transformation function.
Carlos Martín Nieto committed
-
- 03 Jul, 2014 3 commits
-
-
Jacques Germishuys committed
-
Move the definition of git_thread_yield() to the test which needs it and add the correct definition for it for FreeBSD and derivatives. Original patch adding FreeBSD and derivatives by @jacquesg.
Carlos Martín Nieto committed -
In order to connect to a remote server, we need to provide a path to the repository we're interested in. Consider the lack of path in the url an error.
Carlos Martín Nieto committed
-
- 02 Jul, 2014 2 commits
-
-
When the stream writing function was written, it assume that libssh2_channel_write() would always write all of the data to the wire. This is only true for the first 32k of data, which it tries to fit into one ssh packet. Since it can perform short writes, call it in a loop like we do for send(), advancing the buffer offset.
Carlos Martín Nieto committed -
As git_clone now has callbacks to configure the details of the repository and remote, remove the lower-level functions from the public API, as they lack some of the logic from git_clone proper.
Carlos Martín Nieto committed
-