summaryrefslogtreecommitdiff
path: root/include/git2/repository.h
Commit message (Collapse)AuthorAgeFilesLines
* Introduce option to use relative paths for repository work directoryjamill/relative_gitlinkJameson Miller2014-09-021-0/+3
| | | | | | | Teach git_repository_init_ext to use relative paths for the gitlink to the work directory. This is used when creating a sub repository where the sub repository resides in the parent repository's .git directory.
* git_cherry_pick -> git_cherrypickEdward Thomson2014-07-221-1/+1
|
* Fixed miscellaneous documentation errors.Michael Anderson2014-05-231-1/+1
|
* Minor fixes for warnings and error propagationRussell Belfer2014-05-121-1/+5
|
* Merge pull request #2188 from libgit2/cmn/config-snapshotRussell Belfer2014-05-121-1/+13
|\ | | | | Configuration snapshotting
| * repository: introduce a convenience config snapshot methodcmn/config-snapshotCarlos Martín Nieto2014-05-071-1/+13
| | | | | | | | | | | | Accessing the repository's config and immediately taking a snapshot of it is a common operation, so let's provide a convenience function for it.
* | Add filter options and ALLOW_UNSAFERussell Belfer2014-05-061-0/+5
| | | | | | | | | | | | | | | | | | Diff and status do not want core.safecrlf to actually raise an error regardless of the setting, so this extends the filter API with an additional options flags parameter and adds a flag so that filters can be applied with GIT_FILTER_OPT_ALLOW_UNSAFE, indicating that unsafe filter application should be downgraded from a failure to a warning.
* | Make init_options fns use unsigned ints and macroRussell Belfer2014-05-021-5/+4
|/ | | | | Use an unsigned int for the version and add a helper macro so the code is simplified (and so the error message is a common string).
* 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.