summaryrefslogtreecommitdiff
path: root/include/git2/repository.h
Commit message (Collapse)AuthorAgeFilesLines
* Added function-based initializers for every options struct.Matthew Bowen2014-03-051-0/+13
| | | | The basic structure of each function is courtesy of arrbee.
* Add reflog params to git_repository_detach_headBen Straub2014-02-041-1/+5
|
* Add reflog params to set-head callsBen Straub2014-01-301-2/+10
|
* repository: move to use a git_buf for outputting stringsCarlos Martín Nieto2014-01-271-19/+7
| | | | | Since we now export that type, we can avoid making the user guess a size.
* Update docs for new callback return value behaviorRussell Belfer2013-12-111-6/+14
|
* clean up state metadata more consistentlyEdward Thomson2013-12-021-3/+3
|
* No such thing as an orphan branchCarlos Martín Nieto2013-09-171-6/+6
| | | | | | | | | | | Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
* Add BARE option to git_repository_open_extRussell Belfer2013-07-101-0/+4
| | | | | | | | | | | This adds a BARE option to git_repository_open_ext which allows a fast open path that still knows how to read gitlinks and to search for the actual .git directory from a subdirectory. `git_repository_open_bare` is still simpler and faster, but having a gitlink aware fast open is very useful for submodules where we want to quickly be able to peek at the HEAD and index data without doing any other meaningful repo operations.
* Fix small typo in docs for git_repository_message.Andrej Mitrovic2013-07-021-1/+1
|
* Fix docs to use proper enum names that exist.Andrej Mitrovic2013-07-011-2/+2
|
* Fixed most documentation header bugsAndreas Linde2013-06-241-1/+1
| | | | | | | | | | | Fixed a few header @param and @return typos with the help of -Wdocumentation in Xcode. The following warnings have not been fixed: common.h:213 - Not sure how the documentation format is for '...' notes.h:102 - Correct @param name but empty text notes.h:111 - Correct @param name but empty text pack.h:140 - @return missing text pack.h:148 - @return missing text
* Improve test failure outputBen Straub2013-05-231-0/+9
|
* Unify whitespaces to tabsLinquize2013-05-151-5/+5
|
* Fix git_repository_message docsRussell Belfer2013-05-091-2/+11
| | | | | | | | This clarifies the docs for git_repository_message and also adds to the tests to explicitly check NUL termination of data when the output buffer is smaller than the message size. There is a minor behavior change so that a non-NULL output buffer will always be NUL terminated (at length zero) if an error occurs.
* lol namespacesvmg/namespacesVicent Marti2013-04-301-0/+22
|
* Move some low-level repo fns to include/git2/sysRussell Belfer2013-04-211-70/+0
|
* Added git_repository_new functionJohn Wiegley2013-04-211-0/+8
|
* repository: Doc fixVicent Marti2013-04-181-3/+1
|
* repository: Add `git_repository_open_bare`vmg/bare-openVicent Marti2013-04-171-0/+15
|
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-0/+33
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Correct typos in documentationKevin Sawicki2013-01-061-1/+1
|
* MERGE_HEAD contents iteratorEdward Thomson2013-01-031-0/+16
|
* expose merge metadata cleanupEdward Thomson2013-01-031-0/+9
|
* fetchhead reading/iteratingEdward Thomson2012-12-191-0/+18
|
* Allow compilation as C++Ben Straub2012-12-061-1/+1
|
* Add version fields and init macros for public input structs.Ben Straub2012-11-301-0/+4
|
* Various minor commenting fixesRussell Belfer2012-11-271-1/+5
|
* Typedef enums.Ben Straub2012-11-271-5/+5
|
* API updates for repository.hBen Straub2012-11-271-24/+24
|
* repo: ensure is_empty() checks there are no refsnulltoken2012-11-171-1/+1
|
* repository: Refine repository_head() error reportnulltoken2012-11-121-1/+1
|
* repo: enhance git_repository_state() detectionnulltoken2012-10-271-0/+6
|
* reset changes for mergeEdward Thomson2012-10-241-0/+16
|
* repository: TypoVicent Marti2012-10-191-1/+1
|
* errors: deploy GIT_EORPHANEDHEAD usagenulltoken2012-10-191-2/+4
|
* repository: introduce git_repository_set_head()nulltoken2012-09-171-0/+22
|
* repository: introduce git_repository_set_head_detached()nulltoken2012-09-171-0/+20
|
* repository: introduce git_repository_detach_head()nulltoken2012-09-171-0/+19
|
* repository: fix documentation typonulltoken2012-09-171-1/+1
|
* Add tests and improve param checksRussell Belfer2012-09-111-2/+1
| | | | | | | | Fixed some minor `git_repository_hashfile` issues: - Fixed incorrect doc (saying that repo could be NULL) - Added checking of object type value to acceptable ones - Added more tests for various parameter permutations
* Add git_repository_hashfile to hash with filtersRussell Belfer2012-09-111-0/+25
| | | | | | | | The existing `git_odb_hashfile` does not apply text filtering rules because it doesn't have a repository context to evaluate the correct rules to apply. This adds a new hashfile function that will apply repository-specific filters (based on config, attributes, and filename) before calculating the hash.
* Fix warnings and merge issues on Win64Russell Belfer2012-08-231-0/+5
|
* Add template dir and set gid to repo initRussell Belfer2012-08-221-17/+30
| | | | | | | | | | | | | | | | | This extends git_repository_init_ext further with support for initializing the repository from an external template directory and with support for the "create shared" type flags that make a set GID repository directory. This also adds tests for much of the new functionality to the existing `repo/init.c` test suite. Also, this adds a bunch of new utility functions including a very general purpose `git_futils_mkdir` (with the ability to make paths and to chmod the paths post-creation) and a file tree copying function `git_futils_cp_r`. Also, this includes some new path functions that were useful to keep the code simple.
* Add git_repository_init_ext for power inittersRussell Belfer2012-08-221-4/+131
| | | | | | | The extended version of repository init adds support for many of the things that you can do with `git init` and sets up structures that will make it easier to extend further in the future.
* repository: add a getter and remove function for git's prepared messageCarlos Martín Nieto2012-08-011-0/+22
| | | | | | | | | | 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.
* 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().
* 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.
* Fix spelling errors.Bruce Mitchener2012-05-191-2/+2
|
* errors: Rename the generic return codesVicent Martí2012-05-181-7/+7
|