summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* attr: Do not export variables externallyattr-exportVicent Marti2012-08-021-9/+25
| | | | | | | | | | 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:
* Add function to query for compile time settings.Sascha Cunz2012-08-011-0/+23
|
* Merge pull request #833 from carlosmn/odb-oneVicent Martí2012-07-312-0/+14
|\ | | | | 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/+1
| | | | | | | | | | git_odb_backend_one_packfile() allows us to create an ODB backend out of an .idx file.
* | git_oid_cmp: inline memcmp by hand to optimizeMichael Schubert2012-07-291-1/+25
| | | | | | | | | | | | | | | | | | git.git uses an inlined hashcmp function instead of memcmp, since it performes much better when comparing hashes (most hashes compared diverge within the first byte). Measurements and rationale for the curious reader: http://thread.gmane.org/gmane.comp.version-control.git/172286
* | Merge pull request #834 from carlosmn/network-callbacksVicent Martí2012-07-272-1/+35
|\ \ | | | | | | Add a struct for network callbacks
| * | Add a struct for network callbacksCarlos Martín Nieto2012-07-212-1/+35
| |/ | | | | | | | | Currently only update_tips is used, but it prepares the way for progress output during download.
* | branch: Add `repository` argument to `create`Vicent Marti2012-07-271-0/+1
| | | | | | | | | | Yes, we can get the repository from the owner of the object, but having it marked explicitly makes the API more consistent.
* | Merge remote-tracking branch 'nulltoken/topic/branch-rework' into developmentVicent Marti2012-07-272-29/+52
|\ \
| * | refs: drop git_reference_remote_tracking_from_branch()nulltoken2012-07-241-21/+0
| | |
| * | branch: introduce git_branch_tracking()nulltoken2012-07-241-0/+16
| | |
| * | branch: make git_branch_move() reference basednulltoken2012-07-241-9/+4
| | |
| * | branch: slight git_branch_create() doc improvementnulltoken2012-07-241-2/+2
| | |
| * | branch: introduce git_reference_is_branch()nulltoken2012-07-241-0/+10
| | |
| * | branch: introduce git_branch_lookup()nulltoken2012-07-241-0/+24
| | |
| * | branch: change git_branch_create() to make it return a referencenulltoken2012-07-241-4/+3
| | |
* | | reflog: Rename `entry_drop` to `drop`Vicent Marti2012-07-271-1/+1
| | |
* | | Merge remote-tracking branch 'nulltoken/topic/reflog-delete' into developmentVicent Marti2012-07-271-8/+36
|\ \ \
| * | | reflog: prevent git_reflog_append() from persisting the reflog back to disknulltoken2012-07-251-9/+4
| | | |
| * | | reflog: prevent git_reflog_read() from chocking when no log exists yetnulltoken2012-07-251-0/+4
| | | |
| * | | reflog: introduce git_reflog_write()nulltoken2012-07-251-0/+9
| | | |
| * | | reflog: rename git_reflog_write() to git_reflog_append()nulltoken2012-07-251-2/+2
| | | |
| * | | reflog: introduce git_reflog_entry_drop()nulltoken2012-07-251-0/+20
| |/ /
* | | Remotes: Setter for url+pushurl; Getter for pushurlSascha Cunz2012-07-261-0/+30
| | |
* | | Add flag to turn off pathspec testing for diff and statusyorah2012-07-242-0/+4
|/ /
* | Merge pull request #818 from nulltoken/reworkVicent Martí2012-07-211-0/+17
|\ \ | |/ |/| Revparse rework
| * object: introduce git_object_peel()nulltoken2012-07-171-0/+17
| | | | | | | | Partially fix #530
* | attr: Rename the `git_attr__` exportsVicent Marti2012-07-151-8/+8
|/ | | | | | | Pevents collisions with the original libgit, which also exports those exact symbols. Fixes #822
* commit: properly export git_commit_nth_gen_ancestor()Carlos Martín Nieto2012-07-121-1/+1
|
* Merge pull request #789 from carlosmn/odb-foreachVicent Martí2012-07-122-0/+20
|\ | | | | odb: add git_odb_foreach()
| * odb: add git_odb_foreach()Carlos Martín Nieto2012-07-032-0/+20
| | | | | | | | | | 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-121-0/+3
|\ \ | | | | | | Fix revwalk email parsing
| * | signature: prevent angle bracket usage in identitynulltoken2012-07-111-0/+3
| | |
* | | Merge pull request #814 from nulltoken/topic/revparse-refacVicent Martí2012-07-122-0/+40
|\ \ \ | | | | | | | | Revparse refactoring: a start
| * | | refs: introduce git_reference_remote_tracking_from_branch()nulltoken2012-07-121-0/+21
| | | |
| * | | commit: introduce git_commit_nth_gen_ancestor()nulltoken2012-07-121-0/+19
| |/ /
* | | Merge pull request #812 from arrbee/assorted-tweaksVicent Martí2012-07-122-2/+23
|\ \ \ | |/ / |/| | Assorted goodies
| * | Add flag to write gitlink on setting repo workdirRussell Belfer2012-07-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-101-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Add missing includesVicent Marti2012-07-111-0/+2
| | |
* | | Merge pull request #801 from nulltoken/fix/ref-renamingVicent Martí2012-07-112-0/+12
|\ \ \ | |/ / |/| | refs and revparse love <3
| * | refs: deploy git_reference_has_log()nulltoken2012-07-071-0/+2
| | |
| * | refs: add git_reference_has_log()nulltoken2012-07-071-0/+10
| | |
* | | Merge pull request #793 from libgit2/tree-entry-by-pathRussell Belfer2012-07-101-14/+53
|\ \ \ | | | | | | | | Bring back `entry_bypath`
| * | | tree: Rename `entry_copy` to `entry_dup`tree-entry-by-pathVicent Marti2012-06-291-2/+2
| | | |
| * | | tree: Bring back `entry_bypath`Vicent Marti2012-06-291-14/+53
| | |/ | |/| | | | | | | Smaller, simpler, faster.
* | | Merge pull request #797 from yorah/fix/inter-hunk-contextRussell Belfer2012-07-101-1/+1
|\ \ \ | |_|/ |/| | diff: make inter-hunk-context default value git-compliant
| * | diff: make inter-hunk-context default value git-compliantyorah2012-07-021-1/+1
| |/ | | | | | | Default in git core is 0, not 3
* | Replace incorrect 'it' with 'if' in documentationKevin Sawicki2012-07-031-2/+2
|/