summaryrefslogtreecommitdiff
path: root/src/merge.h
Commit message (Collapse)AuthorAgeFilesLines
* Make sure to always include "common.h" firstPatrick Steinhardt2017-07-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | Next to including several files, our "common.h" header also declares various macros which are then used throughout the project. As such, we have to make sure to always include this file first in all implementation files. Otherwise, we might encounter problems or even silent behavioural differences due to macros or defines not being defined as they should be. So in fact, our header and implementation files should make sure to always include "common.h" first. This commit does so by establishing a common include pattern. Header files inside of "src" will now always include "common.h" as its first other file, separated by a newline from all the other includes to make it stand out as special. There are two cases for the implementation files. If they do have a matching header file, they will always include this one first, leading to "common.h" being transitively included as first file. If they do not have a matching header file, they instead include "common.h" as first file themselves. This fixes the outlined problems and will become our standard practice for header and source files inside of the "src/" from now on.
* merge driver: remove `check` callbackEdward Thomson2016-03-171-6/+0
| | | | | | Since the `apply` callback can defer, the `check` callback is not necessary. Removing the `check` callback further makes the `payload` unnecessary along with the `cleanup` callback.
* merge driver: correct global initializationEdward Thomson2016-03-171-31/+0
|
* merge driver: allow custom default driverEdward Thomson2016-03-171-0/+1
| | | | | | Allow merge users to configure a custom default merge driver via `git_merge_options`. Similarly, honor the `merge.default` configuration option.
* merge driver: introduce custom merge driversEdward Thomson2016-03-171-2/+97
| | | | | | | | Consumers can now register custom merged drivers with `git_merge_driver_register`. This allows consumers to support the merge drivers, as configured in `.gitattributes`. Consumers will be asked to perform the file-level merge when a custom driver is configured.
* merge: rename `git_merge_tree_flags_t` -> `git_merge_flags_t`Edward Thomson2015-11-251-2/+2
|
* merge: merge iteratorsEdward Thomson2015-05-111-4/+14
|
* PERF: In MERGE, lazily compute is_binaryJeff Hostetler2015-03-161-1/+0
|
* s/git_merge_head/git_annotated_commitEdward Thomson2014-10-261-12/+2
| | | | | Rename git_merge_head to git_annotated_commit, as it becomes used in more operations than just merge.
* git_checkout_index: checkout other indexesEdward Thomson2014-07-011-1/+1
| | | | | | | | git_checkout_index can now check out other git_index's (that are not necessarily the repository index). This allows checkout_index to use the repository's index for stat cache information instead of the index data being checked out. git_merge and friends now check out their indexes directly instead of trying to blend it into the running index.
* Introduce git_merge__extract_conflict_pathsJacques Germishuys2014-04-141-0/+2
|
* Remove `git_merge_result` as it's now unnecessaryEdward Thomson2014-03-201-10/+0
|
* Update git_merge_tree_opts to git_merge_optionsEdward Thomson2014-03-201-1/+1
|
* Remove fastforward / uptodate from `git_merge`Edward Thomson2014-03-201-3/+2
|
* Don't try to merge binary filesEdward Thomson2014-01-201-0/+2
|
* Introduce git_revert to revert a single commitEdward Thomson2013-12-021-0/+2
|
* merge branch into current, updating workdirEdward Thomson2013-11-051-0/+11
|
* move mode_t to filebuf_open instead of _commitEdward Thomson2013-11-041-0/+1
|
* merge setupEdward Thomson2013-05-171-0/+22
|
* Fix trailing whitespacesnulltoken2013-05-151-18/+18
|
* Unify whitespaces to tabsLinquize2013-05-151-14/+14
|
* merge!Edward Thomson2013-04-301-5/+110
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* MERGE_HEAD contents iteratorEdward Thomson2013-01-031-0/+1
|
* expose merge metadata cleanupEdward Thomson2013-01-031-1/+0
|
* Move merge functions to merge.cBen Straub2012-11-271-0/+3
| | | | | In so doing, promote commit_list to git_commit_list, with its own internal API header.
* reset changes for mergeEdward Thomson2012-10-241-0/+19