- 16 Feb, 2014 1 commit
-
-
On some systems, notably HP PA-RISC systems running Linux or HP-UX, EWOULDBLOCK and EAGAIN are not the same value. POSIX (and these OSes) allow EWOULDBLOCK to occur on write(2) (and send(2), etc.), so check explicitly for this case as well as EAGAIN by defining and using a macro GIT_ISBLOCKED that considers both. The macro is necessary because MSYS does not provide EWOULDBLOCK and compilation fails if an attempt is made to use it unconditionally. On most systems, where the two values are the same, the compiler will simply optimize this check out and it will have no effect.
brian m. carlson committed
-
- 12 Feb, 2014 4 commits
-
-
Fix filter test for CRLF->LF issues
Edward Thomson committed -
Edward Thomson committed
-
Never convert CRLF->LF
Vicent Marti committed -
Core git performs no conversion on systems that use LF, emulate that.
Edward Thomson committed
-
- 11 Feb, 2014 1 commit
-
-
Handle `core.autocrlf=input` when checking out
Russell Belfer committed
-
- 10 Feb, 2014 3 commits
-
-
Conditional ref update fixups
Russell Belfer committed -
Keep the reflog parameters as the last two, as they're the optional parameters.
Carlos Martín Nieto committed -
This addresses arrbee's concerns about wording in the conditional reference udpate functions.
Carlos Martín Nieto committed
-
- 09 Feb, 2014 6 commits
-
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Not closing the files on a diff failure ensures that clar cleanup will fail on win32 because we still have the file open.
Edward Thomson committed -
add example for diff with --numstat
Ben Straub committed -
rocky-luo committed
-
- 08 Feb, 2014 5 commits
-
-
rocky-luo committed
-
Add git_commit_amend API
Ben Straub committed -
This adds an API to amend an existing commit, basically a shorthand for creating a new commit filling in missing parameters from the values of an existing commit. As part of this, I also added a new "sys" API to create a commit using a callback to get the parents. This allowed me to rewrite all the other commit creation APIs so that temporary allocations are no longer needed.
Russell Belfer committed -
More reflogness
Russell Belfer committed -
refs: conditional ref updates
Russell Belfer committed
-
- 07 Feb, 2014 2 commits
-
-
This fixes a number of warnings with the Windows 64-bit build including a test failure in test_repo_message__message where an invalid pointer to a git_buf was being used.
Russell Belfer committed -
Replace priority queue code with implementation from hashsig
Vicent Marti committed
-
- 06 Feb, 2014 4 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
Remove unused utf8 -> utf16 conversion code
Russell Belfer committed -
Ben Straub committed
-
- 05 Feb, 2014 14 commits
-
-
Edward Thomson committed
-
Ben Straub committed
-
Ben Straub committed
-
Ben Straub committed
-
Ben Straub committed
-
Ben Straub committed
-
Ben Straub committed
-
Some tests of paths that can't actually be written to disk
Ben Straub committed -
Add flexibility to the revwalk API
Russell Belfer committed -
commit: faster parsing
Vicent Marti committed -
We need this from util.h and posix.h, but the latter includes common.h which includes util.h, which means p_strlen is not defined by the time we get to git__strndup(). Split the definition on p_strlen() off into its own header so we can use it in util.h.
Carlos Martín Nieto committed -
The standard library provides a very nice strnlen function, which knows to use SSE, let's not reimplement it ourselves.
Carlos Martín Nieto committed -
The current code issues a lot of strncmp() calls in order to check for the end of the header, simply in order to copy it and start going through it again. These are a lot of calls for something we can check as we go along. Knowing the amount of parents beforehand to reduce allocations in extreme cases does not make up for them. Instead start parsing immediately and check for the double-newline after each header field, leaving the raw_header allocation for the end, which lets us go through the header once and reduces the amount of strncmp() calls significantly. In unscientific testing, this has reduced a shortlog-like usage (walking though the whole history of a branch and extracting data from the commits) of git.git from ~830ms to ~700ms and makes the time we spend in strncmp() negligible.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-