summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Apply filters on checkout.Ben Straub2012-07-061-6/+40
| | | |
| * | | Clone: update index to HEAD.Ben Straub2012-06-251-12/+28
| | | | | | | | | | | | | | | | | | | | git_clone now produces a repo that `git status` reports as clean!
| * | | Checkout: read blob objects to file.Ben Straub2012-06-251-2/+39
| | | | | | | | | | | | | | | | Properly handling file modes. Still needs line- ending transformations.
| * | | Clone: non-empty-dir test, now for Win32.Ben Straub2012-06-211-2/+23
| | | |
| * | | Clone: allow empty dirs.Ben Straub2012-06-211-9/+52
| | | |
| * | | Checkout: initial tree walkers.Ben Straub2012-06-211-2/+50
| | | |
| * | | Clone: replace one hardcoded value with another.Ben Straub2012-06-211-2/+2
| | | |
| * | | Clone: new home for git_checkout_force.Ben Straub2012-06-212-10/+72
| | | |
| * | | Clone: minor cleanup and whitespace.Ben Straub2012-06-211-1/+1
| | | |
| * | | Clone: prefer "master" as default branch.Ben Straub2012-06-211-27/+47
| | | |
| * | | Clone: local branch for remote HEAD.Ben Straub2012-06-211-5/+89
| | | | | | | | | | | | | | | | | | | | Now creating a local branch that tracks to the origin's HEAD branch, and setting HEAD to that.
| * | | Clone: remove fragile path-handling code.Ben Straub2012-06-211-62/+69
| | | | | | | | | | | | | | | | | | | | Also standardized on 3-space indentation. Sorry about that.
| * | | Clone: restructure.Ben Straub2012-06-211-15/+25
| | | |
| * | | Add progress reporting to clone.Ben Straub2012-06-211-43/+48
| | | |
| * | | Add git_clone and git_clone_bare.Ben Straub2012-06-211-0/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far they only create a repo, setup the "origin" remote, and fetch. The API probably needs work as well; there's no way to get progress information at this point. Also uncovered a shortcoming; git_remote_download doesn't fetch over local transport.
* | | | Fix compilation warningnulltoken2012-08-151-1/+1
| | | |
* | | | Merge pull request #873 from carlosmn/tree-walkCarlos Martín Nieto2012-08-141-4/+7
|\ \ \ \ | | | | | | | | | | git_tree_walk callback return value semantic does not match documentation
| * | | | tree: allow the user to skip an entry or cancel the walkCarlos Martín Nieto2012-08-131-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Returning a negative cancels the walk, and returning a positive one causes us to skip an entry, which was previously done by a negative value. This allows us to stay consistent with the rest of the functions that take a callback and keeps the skipping functionality.
| * | | | tree: bring back the documented behaviour for a walkCarlos Martín Nieto2012-08-131-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | However, there should be a way to cancel the walk and another to skip the entry.
* | | | | Merge pull request #875 from arrbee/fix-message-prettify-length-checkRussell Belfer2012-08-141-10/+14
|\ \ \ \ \ | | | | | | | | | | | | Fix message prettify length check
| * | | | | Make git_message_prettify return bytes writtenRussell Belfer2012-08-141-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you want to be absolutely safe with git_message_prettify, you can now pass a NULL pointer for the buffer and get back the number of bytes that would be copied into the buffer. This means that an error is a non-negative return code and a success will be greater than zero from this function.
| * | | | | Check prettify message output buffer after cleanupRussell Belfer2012-08-121-4/+6
| |/ / / / | | | | | | | | | | | | | | | This makes the message prettify buffer length check accurate.
* | | | | Clean up codeRussell Belfer2012-08-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Okay, this is probably cleaner and it is also less net change from the original version
* | | | | Fix config parser boundary logicRussell Belfer2012-08-121-4/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | The config file parser was not working right if there was no whitespace between the value name and the equals sign. This fixes that.
* | | | sha1: add missing header guardsMichael Schubert2012-08-111-0/+5
| | | |
* | | | oid: Explicitly include `oid.h` for the inlined CMPVicent Marti2012-08-098-0/+8
| | | |
* | | | trim whitespace when parsing loose refsRussell Belfer2012-08-091-36/+13
| | | |
* | | | Fix iterator check and return valueRussell Belfer2012-08-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a little cleanup necessary from PR #843. Since the new callbacks return `GIT_EUSER` we have to be a little careful about return values when they are used internally to the library. Also, callbacks should be checked for non-zero return values, not just less than zero.
* | | | remotes: Proper return for `git_remote_ls`Vicent Marti2012-08-061-4/+2
| | | |
* | | | Merge remote-tracking branch 'arrbee/tree-walk-fixes' into developmentVicent Marti2012-08-0612-109/+170
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/notes.c src/transports/git.c src/transports/http.c src/transports/local.c tests-clar/odb/foreach.c
| * | | | Add new iteration behavior to git_tree_walkRussell Belfer2012-08-031-4/+6
| | | | | | | | | | | | | | | | | | | | Missed this one, ironically enough.
| * | | | Update iterators for consistency across libraryRussell Belfer2012-08-0314-112/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates all the `foreach()` type functions across the library that take callbacks from the user to have a consistent behavior. The rules are: * A callback terminates the loop by returning any non-zero value * Once the callback returns non-zero, it will not be called again (i.e. the loop stops all iteration regardless of state) * If the callback returns non-zero, the parent fn returns GIT_EUSER * Although the parent returns GIT_EUSER, no error will be set in the library and `giterr_last()` will return NULL if called. This commit makes those changes across the library and adds tests for most of the iteration APIs to make sure that they follow the above rules.
| * | | | Fix git_tree_walk to return user errorRussell Belfer2012-07-261-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that an error code returned by the callback function of `git_tree_walk` will stop the iteration and get propagated back to the caller verbatim. Also, this adds a minor helper function `git_tree_entry_byoid` that searches a `git_tree` for an entry with the given OID. This isn't a fast function, but it's easier than writing the loop yourself as an external user of the library.
* | | | | remote: add missing include git2/remote.hMichael Schubert2012-08-043-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Otherwise we get an incomplete type error, since git_remote_callbacks isn't declared yet.
* | | | | filebuf: Check the return value for `close`Vicent Marti2012-08-031-2/+7
| | | | |
* | | | | win32: set errno to ENOENT or ENOTDIR when appropriate in do_lstatCarlos Martín Nieto2012-08-021-0/+7
| | | | |
* | | | | Merge remote-tracking branch 'nulltoken/topic/amd64-compat' into developmentVicent Marti2012-08-0223-70/+76
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/oid.c
| * | | | | portability: Improve x86/amd64 compatibilitynulltoken2012-07-2423-67/+68
| | | | | |
* | | | | | Merge pull request #850 from libgit2/attr-exportVicent Martí2012-08-013-8/+27
|\ \ \ \ \ \ | | | | | | | | | | | | | | attr: Do not export variables externally
| * | | | | | attr: Do not export variables externallyVicent Marti2012-08-023-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #824 Exporting variables in a dynamic library is a PITA. Let's keep these values internally and wrap them through a helper method. This doesn't break the external API. @arrbee, aren't you glad I turned the `GIT_ATTR_` macros into function macros? :sparkles:
* | | | | | | repository: IndentationVicent Marti2012-08-021-29/+28
| | | | | | |
* | | | | | | Merge pull request #848 from carlosmn/pending-messageVicent Martí2012-08-011-0/+56
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | repository: add a getter and remove function for git's prepared message
| * | | | | | repository: add a getter and remove function for git's prepared messageCarlos Martín Nieto2012-08-011-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'git revert/cherry-pick/merge -n' commands leave .git/MERGE_MSG behind so that git-commit can find it. As we don't yet support these operations, users who are shelling out to let git perform these operations haven't had a convenient way to get this message. These functions allow the user to retrieve the message and remove it when she's created the commit.
* | | | | | | Add function to query for compile time settings.Sascha Cunz2012-08-011-0/+12
|/ / / / / /
* | | | | | Merge pull request #826 from carlosmn/config-find-errorVicent Martí2012-07-311-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | git_config_find_* does not set a git error
| * | | | | | config: set the error code if we can't find the global/system configCarlos Martín Nieto2012-07-231-0/+4
| | | | | | |
* | | | | | | Merge pull request #833 from carlosmn/odb-oneVicent Martí2012-07-312-0/+48
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | odb: allow creating an ODB backend from a packfile index
| * | | | | | | repo: add git_repository_wrap_odb() to wrap an ODBCarlos Martín Nieto2012-07-211-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Primarily useful when used together with git_odb_backend_one_pack().
| * | | | | | | odb: allow creating an ODB backend from a packfile indexCarlos Martín Nieto2012-07-211-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git_odb_backend_one_packfile() allows us to create an ODB backend out of an .idx file.
* | | | | | | | transport: rename encrypt to use_sslCarlos Martín Nieto2012-07-303-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SSL isn't the only way that a transport can be encrypted. The new name will make it easier to merge the SSH support.