Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Fix memory leak in test | Russell Belfer | 2012-07-12 | 1 | -1/+1 | |
| | | ||||||
* | | Missed a couple of khash inline dependencies | Russell Belfer | 2012-07-12 | 2 | -2/+2 | |
| | | ||||||
* | | Isolate khash inlines from global namespace | Russell Belfer | 2012-07-12 | 2 | -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 inline | Carlos Martín Nieto | 2012-07-12 | 1 | -1/+1 | |
| | | ||||||
* | | tests: fix git_odb_foreach() object count | Carlos Martín Nieto | 2012-07-12 | 1 | -1/+1 | |
| | | | | | | | | Some objects were added in another PR | |||||
* | | commit: properly export git_commit_nth_gen_ancestor() | Carlos Martín Nieto | 2012-07-12 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #789 from carlosmn/odb-foreach | Vicent Martí | 2012-07-12 | 8 | -0/+219 | |
|\ \ | | | | | | | odb: add git_odb_foreach() | |||||
| * | | odb: add git_odb_foreach() | Carlos Martín Nieto | 2012-07-03 | 8 | -0/+219 | |
| | | | | | | | | | | | | | | | 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-parsing | Vicent Martí | 2012-07-12 | 12 | -37/+130 | |
|\ \ \ | | | | | | | | | Fix revwalk email parsing | |||||
| * | | | signature: prevent angle bracket usage in identity | nulltoken | 2012-07-11 | 3 | -22/+53 | |
| | | | | ||||||
| * | | | revwalk: relax the parsing of the commit time | nulltoken | 2012-07-11 | 2 | -7/+68 | |
| | | | | ||||||
| * | | | tests: add test commit with angle brackets in the author name | nulltoken | 2012-07-11 | 7 | -8/+9 | |
| | | | | ||||||
* | | | | Merge pull request #814 from nulltoken/topic/revparse-refac | Vicent Martí | 2012-07-12 | 8 | -69/+281 | |
|\ \ \ \ | | | | | | | | | | | Revparse refactoring: a start | |||||
| * | | | | revparse: deploy git_reference_remote_tracking_from_branch() | nulltoken | 2012-07-12 | 1 | -26/+6 | |
| | | | | | ||||||
| * | | | | refs: introduce git_reference_remote_tracking_from_branch() | nulltoken | 2012-07-12 | 3 | -0/+144 | |
| | | | | | ||||||
| * | | | | refs: readonly tests don't need a sandboxed repo | nulltoken | 2012-07-12 | 1 | -2/+2 | |
| | | | | | ||||||
| * | | | | revparse: deploy git_commit_nth_gen_ancestor() | nulltoken | 2012-07-12 | 1 | -21/+2 | |
| | | | | | ||||||
| * | | | | commit: introduce git_commit_nth_gen_ancestor() | nulltoken | 2012-07-12 | 3 | -0/+110 | |
| | | | | | ||||||
| * | | | | commit: reduce code duplication | nulltoken | 2012-07-12 | 1 | -10/+9 | |
| | | | | | ||||||
| * | | | | revparse: simplify the parsing of described object | nulltoken | 2012-07-12 | 1 | -14/+12 | |
| |/ / / | ||||||
* | | | | Merge pull request #812 from arrbee/assorted-tweaks | Vicent Martí | 2012-07-12 | 16 | -32/+512 | |
|\ \ \ \ | |/ / / |/| | | | Assorted goodies | |||||
| * | | | Fix missing NUL termination of buffer | Russell Belfer | 2012-07-10 | 1 | -0/+2 | |
| | | | | ||||||
| * | | | Add flag to write gitlink on setting repo workdir | Russell Belfer | 2012-07-10 | 4 | -16/+116 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 fn | Russell Belfer | 2012-07-10 | 5 | -12/+153 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 patterns | Russell Belfer | 2012-07-10 | 1 | -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 paths | Russell Belfer | 2012-07-10 | 3 | -3/+140 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 utilities | Russell Belfer | 2012-07-10 | 3 | -0/+100 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `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. | |||||
* | | | | Add missing includes | Vicent Marti | 2012-07-11 | 1 | -0/+2 | |
| | | | | ||||||
* | | | | Merge pull request #801 from nulltoken/fix/ref-renaming | Vicent Martí | 2012-07-11 | 10 | -168/+408 | |
|\ \ \ \ | |/ / / |/| | | | refs and revparse love <3 | |||||
| * | | | revparse: unfound reference return ENOTFOUND | nulltoken | 2012-07-07 | 2 | -24/+52 | |
| | | | | ||||||
| * | | | revparse: fix invalid test reference name | nulltoken | 2012-07-07 | 1 | -3/+7 | |
| | | | | ||||||
| * | | | revparse: do not segfault when retrieving the last entry | nulltoken | 2012-07-07 | 2 | -1/+2 | |
| | | | | ||||||
| * | | | revparse: fix disambiguation of refs | nulltoken | 2012-07-07 | 1 | -84/+98 | |
| | | | | ||||||
| * | | | revparse: unfound previous head return ENOTFOUND | nulltoken | 2012-07-07 | 1 | -0/+2 | |
| | | | | ||||||
| * | | | revparse: split reflog test per feature | nulltoken | 2012-07-07 | 1 | -8/+18 | |
| | | | | ||||||
| * | | | revparse: enhance upstream reflog test coverage | nulltoken | 2012-07-07 | 1 | -2/+12 | |
| | | | | ||||||
| * | | | revparse: enhance refs/<name> coverage | nulltoken | 2012-07-07 | 1 | -2/+57 | |
| | | | | ||||||
| * | | | revparse: only allow decimal reflog ordinal specs | nulltoken | 2012-07-07 | 1 | -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() | nulltoken | 2012-07-07 | 1 | -4/+5 | |
| | | | | ||||||
| * | | | util: add git__isdigit() | nulltoken | 2012-07-07 | 1 | -0/+5 | |
| | | | | ||||||
| * | | | revparse: detect incorrect "refname@{-n}" syntax | nulltoken | 2012-07-07 | 2 | -16/+14 | |
| | | | | ||||||
| * | | | revparse: slightly improve readability of tests | nulltoken | 2012-07-07 | 1 | -18/+24 | |
| | | | | ||||||
| * | | | revparse: readonly tests don't need a sandboxed repo | nulltoken | 2012-07-07 | 1 | -2/+3 | |
| | | | | ||||||
| * | | | refs: deep unfound ref returns ENOTFOUND | nulltoken | 2012-07-07 | 2 | -1/+11 | |
| | | | | ||||||
| * | | | refs: remove seemingly useless giterr_clear() call | nulltoken | 2012-07-07 | 1 | -2/+0 | |
| | | | | ||||||
| * | | | refs: deploy git_reference_has_log() | nulltoken | 2012-07-07 | 2 | -9/+5 | |
| | | | | ||||||
| * | | | refs: add git_reference_has_log() | nulltoken | 2012-07-07 | 3 | -0/+44 | |
| | | | | ||||||
| * | | | refs: fix moving of the reflog when renaming a ref | nulltoken | 2012-07-07 | 3 | -10/+67 | |
| | | | | ||||||
* | | | | Updating language in examples README | Russell Belfer | 2012-07-10 | 1 | -4/+7 | |
| | | | | ||||||
* | | | | Merge pull request #804 from schu/examples-readme | Russell Belfer | 2012-07-10 | 1 | -0/+8 | |
|\ \ \ \ | | | | | | | | | | | examples: add README |