summaryrefslogtreecommitdiff
path: root/include/git2/common.h
Commit message (Collapse)AuthorAgeFilesLines
* settings: clarify what each value meanscmn/https-cap-no-hardcodeCarlos Martín Nieto2016-12-171-0/+18
| | | | Most importantly, clarify what it means for HTTPS and SSH to be supported.
* docs: GIT_OPT_ENABLE_STRICT_OBJECT_CREATION is enabledethomson/settings_docsEdward Thomson2016-10-091-1/+2
| | | | | We changed the defaults on strict object creation - it is enabled by default. Update the documentation to reflect that.
* Add get user agent functionality.Andrius Bentkus2016-07-051-0/+1
|
* Add a no-op size_t typedef for the doc parsercmn/typedef-sizetCarlos Martín Nieto2016-03-311-0/+8
| | | | | | | | | Clang's documentation parser, which we use in our documentation system does not report any comments for functions which use size_t as a type. The root cause is buried somewhere in libclang but we can work around it by defining the type ourselves. This typedef makes sure that libclang sees it and that we do not change its size.
* Setup better defaults for OpenSSL ciphersDirkjan Bussink2016-03-141-0/+6
| | | | | | | | | This ensures that when using OpenSSL a safe default set of ciphers is selected. This is done so that the client communicates securely and we don't accidentally enable unsafe ciphers like RC4, or even worse some old export ciphers. Implements the first part of https://github.com/libgit2/libgit2/issues/3682
* Merge pull request #3636 from nerdishbynature/fix-non-modular-header-in-moduleCarlos Martín Nieto2016-03-111-1/+2
|\ | | | | Don't include inttypes if compiling for Mac/iOS
| * Check for __CLANG_INTTYPES_HPiet Brauer2016-03-111-1/+2
| | | | | | | | | | | | This fixes an issue in Xcode 7.3 in objective-git where we get the error "Include of non-modular header file in module". Not importing this header again fixes the issue.
* | git_libgit2_opts: introduce `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION`Edward Thomson2016-02-281-0/+9
|/
* git_libgit2_opts: document GIT_OPT_SET_USER_AGENTEdward Thomson2016-02-221-0/+6
|
* settings: allow users to set PROGRAMDATAEdward Thomson2015-11-161-5/+6
| | | | | | Allow users to set the `git_libgit2_opts` search path for the `GIT_CONFIG_LEVEL_PROGRAMDATA`. Convert `GIT_CONFIG_LEVEL_PROGRAMDATA` to `GIT_SYSDIR_PROGRAMDATA` for setting the configuration.
* Merge pull request #3170 from CmdrMoozy/nsec_fixCarlos Martín Nieto2015-11-121-2/+3
|\ | | | | git_index_entry__init_from_stat: set nsec fields in entry stats
| * settings: expose GIT_USE_NSEC flag in git_libgit2_featuresAxel Rasmussen2015-09-181-2/+3
| |
* | settings: add a setter for a custom user-agentCarlos Martín Nieto2015-11-121-0/+3
| |
* | inttypes.h is built-in header file since MSVC 2013Linquize2015-10-221-1/+1
| | | | | | | | | | | | | | The reason is that the types defined in libgit2's inttypes.h collide with system inttypes.h 3rd party library header files may directly reference MSVC's built-in inttypes.h Fixes #3476
* | win32: add c linkage guard around inttypes.h inclusionEdward Thomson2015-10-211-6/+8
|/
* doc: add documentation to all the public structs and enumscmn/doc-allCarlos Martín Nieto2014-12-061-1/+6
| | | | | | | | | | This makes them show up in the reference, even if the text itself isn't the most descriptive. These have been found with grep -Przon '\n\ntypedef struct.*?\{' -- include grep -Przon '\n\ntypedef enum.*?\{' -- include
* Move un-namespaced constant to internal headerRussell Belfer2014-10-101-2/+0
| | | | FLAG_BITS only seems to be used internally
* Merge pull request #2588 from swansontec/ssl-cert-path2Carlos Martín Nieto2014-10-101-1/+13
|\ | | | | Add support for setting the SSL CA location
| * Add support for setting the SSL CA locationWilliam Swanson2014-09-301-1/+13
| | | | | | | | | | This allows users to specify self-signed certificates, or to provide their own certificate stores on limited platforms such as mobile phones.
* | object: introduce git_describe_object()nulltoken2014-04-301-0/+2
|/
* opts: bits are not bytesCarlos Martín Nieto2014-03-241-1/+1
| | | | | The default cache size is 256 megabytes, not megabits as claimed in the docs.
* settings: use git_buf for returning stringsCarlos Martín Nieto2014-03-241-5/+4
| | | | | This survived the last round of culling, as the signature is only in the comments.
* Fix the description for `GIT_FEATURE_SSH`.Arthur Schreiber2014-03-031-1/+1
|
* features: Rename `_HAS_` to `_FEATURE_`vmg/featuresVicent Marti2014-03-031-7/+7
|
* caps: Rename the enum name too!Vicent Marti2014-03-031-1/+1
|
* caps: Rename to features to avoid confusionVicent Marti2014-03-031-8/+13
|
* Address PR commentsRussell Belfer2014-02-201-7/+0
| | | | | | | * Make GIT_INLINE an internal definition so it cannot be used in public headers * Fix language in CONTRIBUTING * Make index caps API use signed instead of unsigned values
* Fix typo in documentationLinquize2013-09-221-1/+1
|
* Can git_libgit2_opts() with GIT_OPT_GET_TEMPLATE_PATH and ↵Linquize2013-09-181-1/+15
| | | | GIT_OPT_SET_TEMPLATE_PATH
* Add GIT_CAP_SSH if library was built with SSHRussell Belfer2013-07-091-1/+2
| | | | | This also adds a test that actually calls git_libgit2_capabilities and git_libgit2_version.
* Docs for git_libgit2_opts and cache disable tweakRussell Belfer2013-05-241-2/+31
| | | | | | | This adds docs for the cache control options to git_libgit2_opts and also tweaks the cache code so that if the cache is disabled, then the next time we attempt to insert something into the cache in question, we will actually clear any old cached objects.
* Add typedefs on some public enumsRussell Belfer2013-05-241-6/+7
| | | | Apparently this makes things easier to bind in some languages.
* docs: formatting fixesCarlos Martín Nieto2013-04-241-23/+31
|
* opts: Add getter for cached memoryvmg/atomic64Vicent Marti2013-04-231-1/+2
|
* cache: Max cache size, and evict when the cache fills upvmg/new-cacheVicent Marti2013-04-221-1/+2
|
* Global option settersVicent Marti2013-04-221-0/+2
|
* No longer neededVicent Marti2013-04-221-11/+0
|
* opts: allow configuration of odb cache sizeMichael Schubert2013-03-251-0/+11
| | | | | | | | Currently, the odb cache has a fixed size of 128 slots as defined by GIT_DEFAULT_CACHE_SIZE. Allow users to set the size of the cache via git_libgit2_opts(). Fixes #1035.
* Switch search paths to classic delimited stringsRussell Belfer2013-03-181-19/+14
| | | | | | | | | | | | This switches the APIs for setting and getting the global/system search paths from using git_strarray to using a simple string with GIT_PATH_LIST_SEPARATOR delimited paths, just as the environment PATH variable would contain. This makes it simpler to get and set the value. I also added code to expand "$PATH" when setting a new value to embed the old value of the path. This means that I no longer require separate actions to PREPEND to the value.
* Implement global/system file search pathsRussell Belfer2013-03-151-8/+38
| | | | | | | | | | | | | | | | | | | | | | | The goal of this work is to expose the search logic for "global", "system", and "xdg" files through the git_libgit2_opts() interface. Behind the scenes, I changed the logic for finding files to have a notion of a git_strarray that represents a search path and to store a separate search path for each of the three tiers of config file. For each tier, I implemented a function to initialize it to default values (generally based on environment variables), and then general interfaces to get it, set it, reset it, and prepend new directories to it. Next, I exposed these interfaces through the git_libgit2_opts interface, reusing the GIT_CONFIG_LEVEL_SYSTEM, etc., constants for the user to control which search path they were modifying. There are alternative designs for the opts interface / argument ordering, so I'm putting this phase out for discussion. Additionally, I ended up doing a little bit of clean up regarding attr.h and attr_file.h, adding a new attrcache.h so the other two files wouldn't have to be included in so many places.
* opts: Add getters tooVicent Marti2013-01-231-2/+4
|
* Global options setterVicent Marti2013-01-231-0/+23
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Push! By schu, phkelley, and congyiwu, et alPhilip Kelley2012-11-281-0/+5
|
* Separated git_strarray from common.h. Added doxy comments.Paul Thompson2012-10-111-8/+1
|
* Add function to query for compile time settings.Sascha Cunz2012-08-011-0/+23
|
* Updates from comments on OS4 compatibility pull request ↵Chris Young2012-06-141-2/+0
| | | | http://github.com/libgit2/libgit2/pull/766
* Fix gethostbyname compatibilityChris Young2012-06-091-5/+1
|
* Generic needs compat filesChris Young2012-06-081-1/+1
|
* OS4 compatibilityChris Young2012-06-081-0/+2
|