summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* MERGE_HEAD contents iteratorEdward Thomson2013-01-032-0/+54
|
* expose merge metadata cleanupEdward Thomson2013-01-033-3/+2
|
* Merge pull request #1181 from nvloff/allow_note_overwriteVicent Martí2013-01-031-10/+13
|\ | | | | Allow note overwrite
| * add option to allow git note overwriteNikolai Vladimirov2013-01-031-4/+7
| |
| * notes.c - whitespace fixNikolai Vladimirov2013-01-031-6/+6
| |
* | Fix git__strncasecmpPhilip Kelley2013-01-031-7/+5
|/
* Merge pull request #1152 from ben/clone-api-structificationVicent Martí2013-01-023-130/+170
|\ | | | | Segregate in-memory and persisted remotes
| * Include checkout options inlineBen Straub2013-01-021-2/+5
| |
| * Remove `inmem` flag, use NULL name insteadBen Straub2013-01-022-5/+3
| |
| * Move `url` to last place in parameter listBen Straub2013-01-021-1/+1
| |
| * Fix GCC static/non-static compile errorBen Straub2012-12-271-23/+22
| |
| * remote: Prevent create() from blindly overwritingnulltoken2012-12-241-5/+5
| |
| * Fix indentationsnulltoken2012-12-241-8/+8
| |
| * In-memory remotes don't have namesBen Straub2012-12-211-2/+7
| |
| * git_remote_create calls git_remote_saveBen Straub2012-12-201-1/+0
| |
| * Remote: deprecate dangling, prevent saving in-memoryBen Straub2012-12-202-46/+48
| |
| * Rename remote creation APIsBen Straub2012-12-203-5/+5
| | | | | | | | git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
| * Initialize variableBen Straub2012-12-191-2/+2
| |
| * Clone: trust but verifyBen Straub2012-12-191-0/+3
| |
| * Add more clone options. Push test suite segfaults.Ben Straub2012-12-191-47/+78
| |
* | path: ifdef GIT_WIN32 looks_like_network_computer_name()Michael Schubert2013-01-021-0/+2
| |
* | Invalid ref name normalization leaked memoryRussell Belfer2012-12-271-0/+3
| | | | | | | | | | | | | | | | | | | | When normalizing a reference name, if there is an error because the name is invalid, then the memory allocated for storing the name could be leaked if the caller was not careful and assumed that the error return code meant that no allocation had occurred. This fixes that by explicitly deallocating the reference name buffer if there is an error in normalizing the name.
* | Make spoolandsort a pushable iterator behaviorRussell Belfer2012-12-274-127/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An earlier change to `git_diff_from_iterators` introduced a memory leak where the allocated spoolandsort iterator was not returned to the caller and thus not freed. One proposal changes all iterator APIs to use git_iterator** so we can reallocate the iterator at will, but that seems unexpected. This commit makes it so that an iterator can be changed in place. The callbacks are isolated in a separate structure and a pointer to that structure can be reassigned by the spoolandsort extension. This means that spoolandsort doesn't create a new iterator; it just allocates a new block of callbacks (along with space for its own extra data) and swaps that into the iterator. Additionally, since spoolandsort is only needed to switch the case sensitivity of an iterator, this simplifies the API to only take the ignore_case boolean and to be a no-op if the iterator already matches the requested case sensitivity.
* | path: Teach UNC paths to git_path_dirname_r()nulltoken2012-12-261-0/+25
| | | | | | | | Fix libgit2/libgit2sharp#256
* | Fix -Wmaybe-uninitialized warningMichael Schubert2012-12-221-1/+1
| |
* | Merge pull request #1163 from barrbrain/check-exists-before-writeVicent Martí2012-12-212-2/+4
|\ \ | |/ |/| odb: check if object exists before writing
| * odb: check if object exists before writingDavid Michael Barr2012-12-212-2/+4
| | | | | | | | | | Update the procondition of git_odb_backend::write. It may now be assumed that the object has already been hashed.
* | fetchhead reading/iteratingEdward Thomson2012-12-194-12/+208
| |
* | Merge pull request #1150 from schu/fix-netops-sslVicent Martí2012-12-191-7/+4
|\ \ | | | | | | netops: on SSL teardown only send shutdown alert
| * | netops: on SSL teardown only send shutdown alertMichael Schubert2012-12-171-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to man 3 SSL_shutdown / TLS, "If a unidirectional shutdown is enough (the underlying connection shall be closed anyway), this first call to SSL_shutdown() is sufficient." Currently, an unidirectional shutdown is enough, since gitno_ssl_teardown is called by gitno_close only. Do so to avoid further errors (by misbehaving peers for example). Fixes #1129.
| * | netops: properly handle GITNO_CONNECT_SSL_NO_CHECK_CERTMichael Schubert2012-12-171-3/+3
| | | | | | | | | | | | | | | Don't return an error just because GITNO_CONNECT_SSL_NO_CHECK_CERT is set.
* | | reflog: Actual error handlingVicent Marti2012-12-191-5/+13
| | |
* | | reflog: Rename error handlingVicent Marti2012-12-191-14/+15
| | |
* | | Make goto cleanup more consistentRick Bradley2012-12-181-3/+3
| | | | | | | | | | | | | | | There may be some question about whether this is likely to be needed at all, but that's above my head at the moment.
* | | don't deref before we've assertedRick Bradley2012-12-181-2/+2
| | | | | | | | | | | | just sayin'.
* | | Also, whitespace.Rick Bradley2012-12-181-1/+1
| | | | | | | | | | | | I was totally flaunting @ben's 3-space tab advice.
* | | Improve comment textRick Bradley2012-12-181-1/+1
| |/ |/| | | | | | | This looked wrong to me. I *think* this is more appropriate commentary.
* | Merge pull request #1151 from arrbee/fix-diff-constructor-namesVicent Martí2012-12-175-11/+11
|\ \ | | | | | | Fix diff constructor names
| * | Fix diff constructor name order confusionRussell Belfer2012-12-175-11/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | The diff constructor functions had some confusing names, where the "old" side of the diff was coming after the "new" side. This reverses the order in the function name to make it less confusing. Specifically... * git_diff_index_to_tree becomes git_diff_tree_to_index * git_diff_workdir_to_index becomes git_diff_index_to_workdir * git_diff_workdir_to_tree becomes git_diff_tree_to_workdir
* | Merge pull request #1149 from nulltoken/topic/blob_isbinaryVicent Martí2012-12-173-4/+15
|\ \ | |/ |/| Introduce git_blob_is_binary()
| * blob: introduce git_blob_is_binary()nulltoken2012-12-171-0/+12
| |
| * Fix MSVC compilation warningsnulltoken2012-12-172-4/+3
| |
* | Fix -Wmaybe-uninitialized warningMichael Schubert2012-12-171-1/+1
| |
* | Cloning empty repos: only allow missing target for HEADBen Straub2012-12-151-2/+2
| |
* | Stop returning incorrect error messageBen Straub2012-12-141-1/+1
| |
* | Local Only ignore ENOTFOUNDs when adding corrupted refsBen Straub2012-12-142-5/+11
| |
* | Allow clone to handle empty reposBen Straub2012-12-141-1/+3
|/
* Move non-options back out of options structBen Straub2012-12-141-5/+12
|
* Deploy git_clone_options; remove git_clone_bareBen Straub2012-12-141-34/+10
|
* Merge remote-tracking branch 'origin/clone-auth' into developmentVicent Marti2012-12-142-53/+86
|\