summaryrefslogtreecommitdiff
path: root/examples/general.c
Commit message (Collapse)AuthorAgeFilesLines
* MSVC doesn't like modern code neitherLinquize2014-01-271-2/+1
|
* Update files that reference tests-clarBen Straub2013-11-141-1/+1
|
* Replace copyright topmatter in example filesBen Straub2013-11-021-0/+14
|
* refs: remove the OID/SYMBOLIC filteringCarlos Martín Nieto2013-05-111-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 charactersVicent Marti2013-04-101-2/+1
|
* General example: run against testrepo.gitBen Straub2013-04-041-9/+13
| | | | Fixes #1455
* Add rudimentary error checks and reformat commentsRussell Belfer2013-02-151-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.htmlCarlos Scheidegger2013-02-061-2/+1
|
* API updates for index.hBen Straub2012-11-271-1/+1
|
* Update diff callback param orderRussell Belfer2012-11-271-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.hRussell Belfer2012-11-271-2/+2
|
* Examples: fix reference namesBen Straub2012-11-271-2/+2
|
* tag: rename git_tag_type to git_tag_target_typenulltoken2012-11-171-1/+1
|
* index refactoringEdward Thomson2012-10-291-1/+1
|
* examples: fix config getter param orderCarlos Martín Nieto2012-09-301-2/+2
|
* Fix examples/general.c compilationScott J. Goldman2012-05-201-1/+1
| | | | git_reference_listall() -> git reference_list()
* errors: Rename the generic return codesVicent Martí2012-05-181-1/+1
|
* Basic setup for profilingRussell Belfer2012-05-171-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 _databaseCarlos Martín Nieto2012-01-131-1/+1
|
* Rename all `_close` methodsVicent Marti2011-11-261-6/+6
| | | | | There's no difference between `_free` and `_close` semantics: keep everything with the same name to avoid confusions.
* examples/general.c: update for recent API renaming of git_config_get_intBrandon Casey2011-11-051-2/+2
| | | | git_config_get_int --> git_config_get_int32
* Fixed typo in example Makefile code and slimmed it down more.David Boyce2011-09-151-49/+37
| | | | | | | Reverted signature of git_signature_new. Removed error check wrappers (voted down). Made Makefile work out of the box on Linux and Solaris when standard cmake build instructions for the library are followed.
* Changes to allow examples/*.c to compile and link. This required onDavid Boyce2011-09-121-41/+57
| | | | | | | | | change to the signature of an API function (git_signature_new). Also, the examples/general.c had a lot of unchecked return values which were addresed with a couple of macros. The resulting example still does not work correctly but at least now it fails with an error message rather than not compiling or dumping core. Example runtime issues may be addressed in a later commit.
* examples/general: fix misc warningsKirill A. Shutemov2011-07-051-2/+4
| | | | | | | | examples/general.c:393:25: warning: unused variable ‘reftarget’ [-Wunused-variable] examples/general.c:357:19: warning: unused variable ‘e’ [-Wunused-variable] examples/general.c:444:1: warning: control reaches end of non-void function [-Wreturn-type] Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* examples/general: fix warnings on not handled reference type in switchKirill A. Shutemov2011-07-051-0/+3
| | | | | | | | | examples/general.c:402:5: warning: enumeration value ‘GIT_REF_INVALID’ not handled in switch [-Wswitch] examples/general.c:402:5: warning: enumeration value ‘GIT_REF_PACKED’ not handled in switch [-Wswitch] examples/general.c:402:5: warning: enumeration value ‘GIT_REF_HAS_PEEL’ not handled in switch [-Wswitch] examples/general.c:402:5: warning: enumeration value ‘GIT_REF_LISTALL’ not handled in switch [-Wswitch] Signe-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* examples/general: fix git_commit_create_v() arguments typeKirill A. Shutemov2011-07-051-3/+6
| | | | | | general.c:208: warning: passing argument 7 of 'git_commit_create_v' from incompatible pointer type Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* cleanup: remove trailing spacesKirill A. Shutemov2011-07-011-12/+12
| | | | Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
* config: Update examplesVicent Marti2011-06-181-1/+1
|
* oid: Rename methodsVicent Marti2011-06-161-8/+8
| | | | | Yeah. Finally. Fuck the old names, this ain't POSIX and they don't make any sense at all.
* update examples content to be compilable and up to dateScott Chacon2011-06-151-0/+439