summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1966 from nickh/patch_content_offsetsVicent Martí2013-11-191-4/+13
|\ | | | | Add content offset to git_diff_line
| * Add content offset to git_diff_lineNick Hengeveld2013-11-181-4/+13
| | | | | | | | | | | | For additions and deletions, external consumers like subversion can make use of the content offset to generate diffs in their proprietary formats.
* | util: NetBSD doesn't have qsort_r eitherAlessandro Ghedini2013-11-191-1/+2
| |
* | Merge pull request #1968 from libgit2/ntk/fix/bad_indexVicent Martí2013-11-192-7/+18
|\ \ | | | | | | Corrupted index is bad for your health
| * | index: Free the index on git_index_open() failurenulltoken2013-11-191-1/+7
| | |
| * | tree-cache: Fix error message typonulltoken2013-11-191-2/+2
| | |
| * | tree-cache: Don't segfault upon corruptionnulltoken2013-11-191-3/+6
| | |
| * | tree-cache: Zero out the allocated tree children arraynulltoken2013-11-191-0/+2
| | |
| * | tree-cache: Free the tree upon the detection of a corrupted childnulltoken2013-11-191-1/+1
| |/
* | Merge pull request #1967 from victorgp/cleaning-code-minor-changeVicent Martí2013-11-191-4/+0
|\ \ | |/ |/| Cleaning code, removing unused variables
| * cleaning code, removing unused variablesVictor Garcia2013-11-191-4/+0
| |
* | netops: fix leakCarlos Martín Nieto2013-11-181-2/+5
| |
* | Fix warningsRussell Belfer2013-11-182-5/+5
| |
* | Introduce git_cred_default for NTLM/SPNEGO authEdward Thomson2013-11-182-0/+55
| |
* | Propagate auth error codes as GIT_EUSER in winhttpEdward Thomson2013-11-183-37/+56
|/
* Merge pull request #1951 from victorgp/create-remote-plus-fetchVicent Martí2013-11-141-0/+30
|\ | | | | Allowing create remotes with custom fetch spec
| * splitting funcionality in two methods to avoid ambiguity with NULLVictor Garcia2013-11-083-8/+35
| |
| * allowing create remote with custom fetch specVictor Garcia2013-11-073-6/+9
| |
* | Fix warningsRussell Belfer2013-11-133-4/+6
| |
* | Don't leak memory when duplicating a NULL signatureBen Straub2013-11-122-5/+7
| |
* | Fix buffer blame with new lines at end of fileBen Straub2013-11-121-9/+6
| |
* | Duplicate all fields of a blame hunkBen Straub2013-11-121-0/+5
| |
* | Fix warningsLinquize2013-11-123-3/+3
| |
* | Merge pull request #1956 from libgit2/cmn/fetch-default-headVicent Martí2013-11-1112-178/+313
|\ \ | | | | | | Remote revamp (director's cut)
| * | remote: update head list on pushCarlos Martín Nieto2013-11-113-11/+27
| | | | | | | | | | | | | | | A previous commit forgot to update the head list after push as well, leading to wrong output of git_remote_ls().
| * | remote: let's at least pretend to have some memory safetyCarlos Martín Nieto2013-11-111-3/+27
| | | | | | | | | | | | | | | | | | Copy the pointers into temporary vectors instead of assigning them tot he same array so we don't mess up with someone else's memory by accident (e.g. by sorting).
| * | remote: fix a couple of leaksCarlos Martín Nieto2013-11-112-7/+4
| | |
| * | remote: make _ls return the list directlyCarlos Martín Nieto2013-11-118-84/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The callback-based method of listing remote references dates back to the beginning of the network code's lifetime, when we didn't know any better. We need to keep the list around for update_tips() after disconnect() so let's make use of this to simply give the user a pointer to the array so they can write straightforward code instead of having to go through a callback.
| * | remote: don't allow such direct access to the refspecsCarlos Martín Nieto2013-11-102-24/+68
| | | | | | | | | | | | | | | | | | Removing arbitrary refspecs makes things more complex to reason about. Instead, let the user set the fetch and push refspec list to whatever they want it to be.
| * | remote: store dwimed refspecs separatelyCarlos Martín Nieto2013-11-016-90/+128
| | | | | | | | | | | | | | | This allows us to add e.g. "HEAD" as a refspec when none are given without overwriting the user's data.
| * | remote: create FETCH_HEAD with a refspecless remoteCarlos Martín Nieto2013-11-012-0/+27
| | | | | | | | | | | | | | | | | | When downloading the default branch due to lack of refspecs, we still need to write out FETCH_HEAD with the tip we downloaded, unfortunately with a format that doesn't match what we already have.
| * | remote: give up after 256 failures to find a common objectCarlos Martín Nieto2013-11-011-5/+6
| | | | | | | | | | | | | | | | | | | | | This avoids sending our whole history bit by bit to the remote in cases where there is no common history, just to give up in the end. The number comes from the canonical implementation.
| * | remote: download HEAD when no refspecs are givenCarlos Martín Nieto2013-11-011-5/+6
| | | | | | | | | | | | | | | | | | | | | The correct behaviour when a remote has no refspecs (e.g. a URL from the command-line) is to download the remote's HEAD. Let's do that. This fixes #1261.
* | | config_file: styleVicent Marti2013-11-101-18/+18
| | |
* | | Merge pull request #1950 from csware/quote-config-valuesVicent Martí2013-11-101-2/+24
|\ \ \ | | | | | | | | Correctly quote config values while saving
| * | | Rename methodSven Strickroth2013-11-071-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
| * | | Correctly quote config values while savingSven Strickroth2013-11-071-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | If the value contains a command (; or #) char or starts or ends with space it needs to be quoted. Signed-off-by: Sven Strickroth <email@cs-ware.de>
* | | | Merge pull request #1936 from libgit2/better-url-parsingVicent Martí2013-11-104-86/+92
|\ \ \ \ | | | | | | | | | | Streamline url-parsing logic.
| * | | | Make url decoding more bulletproofbetter-url-parsingBen Straub2013-11-051-12/+7
| | | | |
| * | | | Remove unnecessary checkBen Straub2013-11-051-1/+1
| | | | |
| * | | | Incorporate feedbackBen Straub2013-11-051-5/+5
| | | | |
| * | | | Fix ssh.c compileBen Straub2013-11-041-2/+3
| | | | |
| * | | | Unescape url-encoded usernames and passwordsBen Straub2013-11-041-2/+26
| | | | |
| * | | | Use http_parser_parse_url to parse urlsBen Straub2013-11-044-89/+74
| | | | |
| * | | | Clarify parsing issues and errorsBen Straub2013-11-011-2/+3
| | | | |
| * | | | Streamline url-parsing logic.Ben Straub2013-11-011-25/+25
| | |/ / | |/| |
* | | | Allow callers to set mode on packfile creationEdward Thomson2013-11-073-4/+8
| | | |
* | | | Add git_packbuilder_hash to query pack filenameEdward Thomson2013-11-071-2/+10
| |_|/ |/| |
* | | don't double free pktEdward Thomson2013-11-051-1/+1
| | |
* | | Merge pull request #1946 from arthurschreiber/change-branch-iterator-definitionCarlos Martín Nieto2013-11-051-2/+2
|\ \ \ | | | | | | | | Change the git_branch_iterator_new definition to use git_branch_t