Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | strarray: we should `dispose` instead of `free` | Edward Thomson | 2020-06-01 | 1 | -1/+1 |
| | | | | | | We _dispose_ the contents of objects; we _free_ objects (and their contents). Update `git_strarray_free` to be `git_strarray_dispose`. `git_strarray_free` remains as a deprecated proxy function. | ||||
* | examples: consolidate includes into "common.h" | Patrick Steinhardt | 2019-07-05 | 1 | -3/+3 |
| | | | | | Consolidate all standard includes and defines into "common.h". This lets us avoid having to handle platform-specific things in multiple places. | ||||
* | examples: avoid warning when iterating over index entries | Patrick Steinhardt | 2019-07-05 | 1 | -1/+1 |
| | | | | | | | | When iterating over index entries, we store the indices in an unsigned int. As the index entrycount is a `size_t` though, this may be a loss of precision which a compiler might rightfully complain about. Use `size_t` instead to fix any warnings. | ||||
* | examples: create common lg2 executable | Patrick Steinhardt | 2019-02-15 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | Inside of our networking example code, we have a git2 executable that acts as an entry point to all the different network examples. As such, it is kind of the same like the normal git(1) executable in that it simply arbitrates to the respective subcommands. Let's extend this approach and merge all examples into a single standalone lg2 executable. Instead of building an executable for all the existing examples we have, we now bundle them all inside of the lg2 one and let them be callable via subcommands. In the process, we can get rid of duplicated library initialization, deinitialization and repository discovery code. Instead of having each subcommand handle these on its own, we simply do it inside of the single main function now. | ||||
* | examples: don't use deprecated types | Edward Thomson | 2019-01-25 | 1 | -2/+2 |
| | |||||
* | errors: remove giterr usage in examples | Edward Thomson | 2019-01-22 | 1 | -1/+1 |
| | |||||
* | Merge pull request #4939 from libgit2/ethomson/git_ref | Edward Thomson | 2019-01-19 | 1 | -2/+2 |
|\ | | | | | Move `git_ref_t` to `git_reference_t` | ||||
| * | references: use new names in internal usageethomson/git_ref | Edward Thomson | 2019-01-17 | 1 | -2/+2 |
| | | | | | | | | Update internal usage to use the `git_reference` names for constants. | ||||
* | | object_type: convert final internal users to new namesethomson/git_obj | Edward Thomson | 2019-01-17 | 1 | -2/+2 |
|/ | | | | | Update some missed types that were continuing to use the old `GIT_OBJ` names. | ||||
* | treewide: remove use of C++ style comments | Patrick Steinhardt | 2018-07-13 | 1 | -5/+7 |
| | | | | | | | | | C++ style comment ("//") are not specified by the ISO C90 standard and thus do not conform to it. While libgit2 aims to conform to C90, we did not enforce it until now, which is why quite a lot of these non-conforming comments have snuck into our codebase. Do a tree-wide conversion of all C++ style comments to the supported C style comments to allow us enforcing strict C90 compliance in a later commit. | ||||
* | Fix Issue #4047 Check return codes and free objectsexample_general | Douglas Swanson | 2017-10-07 | 1 | -3/+28 |
| | |||||
* | examples: general: fix memory leaks | Patrick Steinhardt | 2017-01-12 | 1 | -1/+30 |
| | |||||
* | examples: general: display config only if it was found | Patrick Steinhardt | 2017-01-12 | 1 | -3/+3 |
| | |||||
* | examples: general: narrow down scope of loop variables | Patrick Steinhardt | 2017-01-12 | 1 | -4/+6 |
| | |||||
* | examples: general: clean up committer/author variables | Patrick Steinhardt | 2017-01-12 | 1 | -4/+4 |
| | |||||
* | Fix issue #4046 Seg fault in config_files() | Douglas Swanson | 2016-12-29 | 1 | -4/+6 |
| | |||||
* | examples: general: fix remaining warnings | Patrick Steinhardt | 2016-10-10 | 1 | -9/+14 |
| | |||||
* | examples: general: convert C99 comments to C90 comments | Patrick Steinhardt | 2016-10-10 | 1 | -42/+54 |
| | |||||
* | examples: general: extract function demonstrating OID parsing | Patrick Steinhardt | 2016-10-10 | 1 | -26/+44 |
| | |||||
* | examples: general: extract function demonstrating ODB | Patrick Steinhardt | 2016-10-10 | 1 | -51/+77 |
| | |||||
* | examples: general: extract function demonstrating commit writing | Patrick Steinhardt | 2016-10-10 | 1 | -36/+51 |
| | |||||
* | examples: general: extract functions demonstrating object parsing | Patrick Steinhardt | 2016-10-10 | 1 | -131/+194 |
| | |||||
* | examples: general: extract function demonstrating revwalking | Patrick Steinhardt | 2016-10-10 | 1 | -39/+53 |
| | |||||
* | examples: general: extract function demonstrating index walking | Patrick Steinhardt | 2016-10-10 | 1 | -24/+33 |
| | |||||
* | examples: general: extract function demonstrating reference listings | Patrick Steinhardt | 2016-10-10 | 1 | -22/+36 |
| | |||||
* | examples: general: extract function demonstrating config files | Patrick Steinhardt | 2016-10-10 | 1 | -14/+23 |
| | |||||
* | examples: general: use tabs instead of spaces | Patrick Steinhardt | 2016-10-10 | 1 | -457/+457 |
| | |||||
* | Update link to Pro Git's Git internals chapter. | Patrick McKenna | 2016-03-07 | 1 | -3/+2 |
| | |||||
* | Spelling fixes | Will Stamper | 2014-12-04 | 1 | -2/+2 |
| | |||||
* | Rename git_threads_ to git_libgit2_ | Carlos Martín Nieto | 2014-11-08 | 1 | -0/+4 |
| | | | | | | This describes their purpose better, as we now initialize ssl and some other global stuff in there. Calling the init function is not something which has been optional for a while now. | ||||
* | Factor 40 and 41 constants from source. | Ciro Santilli | 2014-09-16 | 1 | -2/+2 |
| | |||||
* | MSVC doesn't like modern code neither | Linquize | 2014-01-27 | 1 | -2/+1 |
| | |||||
* | Update files that reference tests-clar | Ben Straub | 2013-11-14 | 1 | -1/+1 |
| | |||||
* | Replace copyright topmatter in example files | Ben Straub | 2013-11-02 | 1 | -0/+14 |
| | |||||
* | refs: remove the OID/SYMBOLIC filtering | Carlos Martín Nieto | 2013-05-11 | 1 | -1/+1 |
| | | | | | | | | | Nobody should ever be using anything other than ALL at this level, so remove the option altogether. As part of this, git_reference_foreach_glob is now implemented in the frontend using an iterator. Backends will later regain the ability of doing the glob filtering in the backend. | ||||
* | examples: Don't print weird characters | Vicent Marti | 2013-04-10 | 1 | -2/+1 |
| | |||||
* | General example: run against testrepo.git | Ben Straub | 2013-04-04 | 1 | -9/+13 |
| | | | | Fixes #1455 | ||||
* | Add rudimentary error checks and reformat comments | Russell Belfer | 2013-02-15 | 1 | -146/+207 |
| | | | | | | | | | There were a number of functions assigning their return value to `error` without much explanation. I added in some rudimentary error checking to help flesh out the example. Also, I reformatted all of the comments down to 80 cols (and in some cases, slightly updated the wording). | ||||
* | removed other references to api.html | Carlos Scheidegger | 2013-02-06 | 1 | -2/+1 |
| | |||||
* | API updates for index.h | Ben Straub | 2012-11-27 | 1 | -1/+1 |
| | |||||
* | Update diff callback param order | Russell Belfer | 2012-11-27 | 1 | -1/+1 |
| | | | | | | | | This makes the diff functions that take callbacks both take the payload parameter after the callback function pointers and pass the payload as the last argument to the callback function instead of the first. This should make them consistent with other callbacks across the API. | ||||
* | API review / update for tree.h | Russell Belfer | 2012-11-27 | 1 | -2/+2 |
| | |||||
* | Examples: fix reference names | Ben Straub | 2012-11-27 | 1 | -2/+2 |
| | |||||
* | tag: rename git_tag_type to git_tag_target_type | nulltoken | 2012-11-17 | 1 | -1/+1 |
| | |||||
* | index refactoring | Edward Thomson | 2012-10-29 | 1 | -1/+1 |
| | |||||
* | examples: fix config getter param order | Carlos Martín Nieto | 2012-09-30 | 1 | -2/+2 |
| | |||||
* | Fix examples/general.c compilation | Scott J. Goldman | 2012-05-20 | 1 | -1/+1 |
| | | | | git_reference_listall() -> git reference_list() | ||||
* | errors: Rename the generic return codes | Vicent Martí | 2012-05-18 | 1 | -1/+1 |
| | |||||
* | Basic setup for profiling | Russell Belfer | 2012-05-17 | 1 | -1/+1 |
| | | | | | This fixes the examples so they will build and adds a PROFILE option to the CMakeFile that enabled gprof info on non-Windows | ||||
* | examples: use git_repository_odb instead of _database | Carlos Martín Nieto | 2012-01-13 | 1 | -1/+1 |
| |