Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | examples: add: fix type casting warning | Patrick Steinhardt | 2016-10-10 | 1 | -5/+4 |
| | |||||
* | examples: diff: parse correct types for line-diffopts | Patrick Steinhardt | 2016-10-10 | 3 | -3/+31 |
| | |||||
* | examples: fix warnings in network/fetch.c | Patrick Steinhardt | 2016-10-10 | 1 | -7/+7 |
| | |||||
* | 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 |
| | |||||
* | proxy: ask the user for credentials if necessary | Carlos Martín Nieto | 2016-04-19 | 1 | -1/+1 |
| | |||||
* | Update link to Pro Git's Git internals chapter. | Patrick McKenna | 2016-03-07 | 1 | -3/+2 |
| | |||||
* | fix return | Eun | 2015-10-07 | 1 | -0/+1 |
| | |||||
* | Update another call to git_remote_connect | Matt Burke | 2015-09-08 | 1 | -1/+1 |
| | |||||
* | Merge pull request #3306 from libgit2/cmn/fetch-ex-fetch | Carlos Martín Nieto | 2015-07-13 | 1 | -74/+27 |
|\ | | | | | examples: modernise the fetch example | ||||
| * | examples: modernise the fetch examplecmn/fetch-ex-fetch | Carlos Martín Nieto | 2015-07-12 | 1 | -74/+27 |
| | | | | | | | | | | Under normal conditions, git_remote_fetch() should be the only function used to perform a fetch. Don't let the example lead people astray. | ||||
* | | Fix #3094 - improve use of portable size_t/ssize_t format specifiers. | Matthew Plough | 2015-07-12 | 1 | -2/+2 |
|/ | | | | The header src/cc-compat.h defines portable format specifiers PRIuZ, PRIdZ, and PRIxZ. The original report highlighted the need to use these specifiers in examples/network/fetch.c. For this commit, I checked all C source and header files not in deps/ and transitioned to the appropriate format specifier where appropriate. | ||||
* | examples: clean up some warnings | Edward Thomson | 2015-06-29 | 2 | -2/+4 |
| | |||||
* | Rename FALLBACK to UNSPECIFIEDcmn/rename-unspecified | Carlos Martín Nieto | 2015-06-25 | 1 | -1/+1 |
| | | | | | Fallback describes the mechanism, while unspecified explains what the user is thinking. | ||||
* | examples: adjust to submodule status API change | Carlos Martín Nieto | 2015-06-22 | 1 | -16/+10 |
| | |||||
* | print_usage functions is defined but not used | Ariel O. Barria | 2015-06-03 | 1 | -0/+2 |
| | | | | | | Use the previously created function to display a message when the arguments are not valid. ticket 3095 | ||||
* | remote: remove fetch parameter from create_anonymous | Carlos Martín Nieto | 2015-05-28 | 2 | -2/+2 |
| | | | | | | An anonymous remote is not configured and cannot therefore have configured refspecs. Remove the parameter which adds this from the constructor. | ||||
* | examples: show the sideband progress on clone | Carlos Martín Nieto | 2015-05-13 | 1 | -0/+8 |
| | | | | | This lets us see what the server (or libgit2 locally) is doing, rather than having to stare at a non-moving screen. | ||||
* | examples: adjust to the new remote API | Carlos Martín Nieto | 2015-05-13 | 4 | -24/+16 |
| | |||||
* | Restructured to be nicer example | Tomas Paladin Volf | 2015-05-02 | 1 | -9/+14 |
| | | | | | Code restructured to better represent best practice when using libgit2. | ||||
* | Added call to git_libgit2_shutdown() | Tomas Paladin Volf | 2015-04-30 | 1 | -2/+4 |
| | | | Added forgotten call to git_libgit2_shutdown() to the /examples/network/git2.c. | ||||
* | describe example: enable building by default. | Patrick Steinhardt | 2015-04-07 | 2 | -0/+2 |
| | |||||
* | examples: add remote example. | Patrick Steinhardt | 2015-03-19 | 3 | -1/+279 |
| | |||||
* | Merge pull request #2808 from libgit2/cmn/repo-ident | Edward Thomson | 2015-03-03 | 1 | -1/+1 |
|\ | | | | | Remove the signature from ref-modifying functions | ||||
| * | Remove the signature from ref-modifying functions | Carlos Martín Nieto | 2015-03-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature. | ||||
* | | Merge pull request #2885 from JIghtuse/master | Carlos Martín Nieto | 2015-03-03 | 1 | -6/+24 |
|\ \ | |/ |/| | describe example: function to add commits to opts | ||||
| * | describe example: function to add commits to opts | Boris Egorov | 2015-02-06 | 1 | -6/+24 |
| | | | | | | | | | | | | | | Add safe function to (a,rea)llocate memory which terminate example on memory allocation failure. Move code to allocate commits to its own function. | ||||
* | | example: drop `SAFE_CREATE` from clone example | Edward Thomson | 2015-02-27 | 1 | -1/+1 |
|/ | |||||
* | for-each-ref example: init/shutdown libgit2 in main | Boris Egorov | 2015-02-05 | 1 | -0/+3 |
| | | | | | | | I don't get how it was working without git_libgit2_init() call. I run it and libgit2 throws assertion somewhere in its internals. Now it works. Updated commit with shutdown at the end. | ||||
* | describe example: fix memory allocation size | Boris Egorov | 2015-01-25 | 1 | -2/+4 |
| | | | | | | | We need to allocate memory for sizeof(char *) * ncommits, not just for ncommits. Issue detected by GCC's AddressSanitizer. | ||||
* | clone example: don't divide by zero | Edward Thomson | 2015-01-10 | 1 | -3/+9 |
| | | | | | Local transports don't have data about the size, avoid dividing by zero in the callback. | ||||
* | Spelling fixes | Will Stamper | 2014-12-04 | 1 | -2/+2 |
| | |||||
* | blame: Do not assume blob contents are NULL-terminated | Vicent Marti | 2014-11-21 | 1 | -6/+8 |
| | |||||
* | Rename git_threads_ to git_libgit2_ | Carlos Martín Nieto | 2014-11-08 | 14 | -25/+29 |
| | | | | | | 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. | ||||
* | remote: rename _load() to _lookup()cmn/remote-lookup | Carlos Martín Nieto | 2014-11-08 | 2 | -2/+2 |
| | | | | This brings it in line with the rest of the lookup functions. | ||||
* | describe: add example | Linquize | 2014-10-12 | 3 | -0/+198 |
| | |||||
* | remote: allow overriding the refspecs for download and fetch | Carlos Martín Nieto | 2014-09-30 | 1 | -1/+1 |
| | | | | | | | With opportunistic ref updates, git has introduced the concept of having base refspecs *and* refspecs that are active for a particular fetch. Let's start by letting the user override the refspecs for download. | ||||
* | Merge pull request #2567 from cirosantilli/factor-41 | Vicent Marti | 2014-09-17 | 3 | -6/+6 |
|\ | | | | | Factor 40 and 41 constants from source. | ||||
| * | Factor 40 and 41 constants from source. | Ciro Santilli | 2014-09-16 | 3 | -6/+6 |
| | | |||||
* | | Fix typo | Linquize | 2014-09-16 | 1 | -1/+1 |
|/ | |||||
* | Fix warning | Linquize | 2014-09-01 | 1 | -1/+1 |
| |