summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Remove old error handling codeMichael Schubert2012-07-172-14/+0
| |_|/ |/| |
* | | attr: Rename the `git_attr__` exportsVicent Marti2012-07-151-7/+7
|/ / | | | | | | | | | | | | Pevents collisions with the original libgit, which also exports those exact symbols. Fixes #822
* | indexer: delay resolving deltasCarlos Martín Nieto2012-07-141-22/+24
| | | | | | | | | | | | Not all delta bases are available on the first try. By delaying resolving all deltas until the end, we avoid decompressing some of the data twice or even more times, saving effort and time.
* | pkt: correctly advertise capabilititesCarlos Martín Nieto2012-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | The correct way to advertise out capabilities is by appending them to the first 'want' line, using SP as separator, instead of NUL as the server does. Inconsistent documentation lead to the use of NUL in libgit2. Fix this so we can request much more efficient packs from the remote which reduces the indexing time considerably.
* | Merge pull request #815 from nulltoken/topic/revparse-refacVicent Martí2012-07-132-82/+34
|\ \ | | | | | | More revparse <3
| * | revparse: fix propagation of errornulltoken2012-07-121-1/+1
| | |
| * | revparse: only allow decimal specifiers in carete and tilde synatxnulltoken2012-07-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | passing 0 to git_strol(32|64) let the implementation guess if it's dealing with an octal number or a decimal one. Let's make it safe and ensure that both 'HEAD@{010}' and 'HEAD@{10}' point at the same commit.
| * | revparse: fix disambiguation of refs and abbrev oidsnulltoken2012-07-121-7/+7
| | |
| * | revparse: simplify handling of the colon syntaxnulltoken2012-07-121-71/+20
| | |
| * | tree: unfound tree entry returns GIT_ENOTFOUNDnulltoken2012-07-121-1/+1
| | |
| * | tree: prevent git_tree_entry_free() from segfaulting when being passed a ↵nulltoken2012-07-121-0/+3
| | | | | | | | | | | | NULL tree_entry
* | | refs: fix a memory leaknulltoken2012-07-121-0/+3
|/ /
* | Missed a couple of khash inline dependenciesRussell Belfer2012-07-122-2/+2
| |
* | Isolate khash inlines from global namespaceRussell Belfer2012-07-122-7/+9
| | | | | | | | | | khash.h was globally #define'ing "inline" which messes with other files. Let's keep it as "kh_inline".
* | Use GIT_INLINE instead of inlineCarlos Martín Nieto2012-07-121-1/+1
| |
* | Merge pull request #789 from carlosmn/odb-foreachVicent Martí2012-07-125-0/+163
|\ \ | | | | | | odb: add git_odb_foreach()
| * | odb: add git_odb_foreach()Carlos Martín Nieto2012-07-035-0/+163
| | | | | | | | | | | | | | | Go through each backend and list every objects that exists in them. This allows fsck-like uses.
* | | Merge pull request #805 from nulltoken/fix/revwalk-email-parsingVicent Martí2012-07-122-12/+43
|\ \ \ | | | | | | | | Fix revwalk email parsing
| * | | signature: prevent angle bracket usage in identitynulltoken2012-07-111-5/+19
| | | |
| * | | revwalk: relax the parsing of the commit timenulltoken2012-07-111-7/+24
| | | |
* | | | Merge pull request #814 from nulltoken/topic/revparse-refacVicent Martí2012-07-123-67/+133
|\ \ \ \ | | | | | | | | | | Revparse refactoring: a start
| * | | | revparse: deploy git_reference_remote_tracking_from_branch()nulltoken2012-07-121-26/+6
| | | | |
| * | | | refs: introduce git_reference_remote_tracking_from_branch()nulltoken2012-07-121-0/+74
| | | | |
| * | | | revparse: deploy git_commit_nth_gen_ancestor()nulltoken2012-07-121-21/+2
| | | | |
| * | | | commit: introduce git_commit_nth_gen_ancestor()nulltoken2012-07-121-0/+34
| | | | |
| * | | | commit: reduce code duplicationnulltoken2012-07-121-10/+9
| | | | |
| * | | | revparse: simplify the parsing of described objectnulltoken2012-07-121-14/+12
| |/ / /
* | | | Merge pull request #812 from arrbee/assorted-tweaksVicent Martí2012-07-129-24/+287
|\ \ \ \ | |/ / / |/| | | Assorted goodies
| * | | Fix missing NUL termination of bufferRussell Belfer2012-07-101-0/+2
| | | |
| * | | Add flag to write gitlink on setting repo workdirRussell Belfer2012-07-101-9/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This added a flag to the `git_repository_set_workdir()` function that enables generation of a `.git` gitlink file that links the new workdir to the parent repository. Essentially, the flag tells the function to write out the changes to disk to permanently set the workdir of the repository to the new path. If you pass this flag as true, then setting the workdir to something other than the default workdir (i.e. the parent of the .git repo directory), will create a plain file named ".git" with the standard gitlink contents "gitdir: <repo-path>", and also update the "core.worktree" and "core.bare" config values. Setting the workdir to the default repo workdir will clear the core.worktree flag (but still permanently set core.bare to false). BTW, the libgit2 API does not currently provide a function for clearing the workdir and converting a non-bare repo into a bare one.
| * | | Adding git_config_foreach_match() iteration fnRussell Belfer2012-07-103-11/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding a new config iteration function that let's you iterate over just the config entries that match a particular regular expression. The old foreach becomes a simple use of this with an empty pattern. This also fixes an apparent bug in the existing `git_config_foreach` where returning a non-zero value from the iteration callback was not correctly aborting the iteration and the returned value was not being propogated back to the caller of foreach. Added to tests to cover all these changes.
| * | | Adding unicode space to match crlf patternsRussell Belfer2012-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | Adding 0x85 to `git__isspace` since we also look for that in filter.c as a whitespace character.
| * | | Add path utilities to resolve relative pathsRussell Belfer2012-07-102-3/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it easy to take a buffer containing a path with relative references (i.e. .. or . path segments) and resolve all of those into a clean path. This can be applied to URLs as well as file paths which can be useful. As part of this, I made the drive-letter detection apply on all platforms, not just windows. If you give a path that looks like "c:/..." on any platform, it seems like we might as well detect that as a rooted path. I suppose if you create a directory named "x:" on another platform and want to use that as the beginning of a relative path under the root directory of your repo, this could cause a problem, but then it seems like you're asking for trouble.
| * | | Add a couple of useful git_buf utilitiesRussell Belfer2012-07-102-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * `git_buf_rfind` (with tests and tests for `git_buf_rfind_next`) * `git_buf_puts_escaped` and `git_buf_puts_escaped_regex` (with tests) to copy strings into a buffer while injecting an escape sequence (e.g. '\') in front of particular characters.
* | | | Merge pull request #801 from nulltoken/fix/ref-renamingVicent Martí2012-07-115-136/+223
|\ \ \ \ | |/ / / |/| | | refs and revparse love <3
| * | | revparse: unfound reference return ENOTFOUNDnulltoken2012-07-071-24/+50
| | | |
| * | | revparse: do not segfault when retrieving the last entrynulltoken2012-07-071-1/+1
| | | |
| * | | revparse: fix disambiguation of refsnulltoken2012-07-071-84/+98
| | | |
| * | | revparse: unfound previous head return ENOTFOUNDnulltoken2012-07-071-0/+2
| | | |
| * | | revparse: only allow decimal reflog ordinal specsnulltoken2012-07-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | passing 0 to git_strol(32|64) let the implementation guess if it's dealing with an octal number or a decimal one. Let's make it safe and ensure that both 'HEAD@{010}' and 'HEAD@{10}' point at the same commit.
| * | | revparse: leverage git__isdigit()nulltoken2012-07-071-4/+5
| | | |
| * | | util: add git__isdigit()nulltoken2012-07-071-0/+5
| | | |
| * | | revparse: detect incorrect "refname@{-n}" syntaxnulltoken2012-07-071-16/+13
| | | |
| * | | refs: deep unfound ref returns ENOTFOUNDnulltoken2012-07-071-1/+1
| | | |
| * | | refs: remove seemingly useless giterr_clear() callnulltoken2012-07-071-2/+0
| | | |
| * | | refs: deploy git_reference_has_log()nulltoken2012-07-071-9/+3
| | | |
| * | | refs: add git_reference_has_log()nulltoken2012-07-071-0/+17
| | | |
| * | | refs: fix moving of the reflog when renaming a refnulltoken2012-07-072-8/+41
| | | |
* | | | Merge pull request #793 from libgit2/tree-entry-by-pathRussell Belfer2012-07-104-105/+140
|\ \ \ \ | | | | | | | | | | Bring back `entry_bypath`
| * | | | tree: Rename `entry_copy` to `entry_dup`Vicent Marti2012-06-291-2/+2
| | | | |