summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix warningsLinquize2013-11-121-1/+1
|
* Merge pull request #1956 from libgit2/cmn/fetch-default-headVicent Martí2013-11-111-12/+14
|\ | | | | Remote revamp (director's cut)
| * remote: make _ls return the list directlyCarlos Martín Nieto2013-11-111-12/+14
| | | | | | | | | | | | | | | | | | | | | | The callback-based method of listing remote references dates back to the beginning of the network code's lifetime, when we didn't know any better. We need to keep the list around for update_tips() after disconnect() so let's make use of this to simply give the user a pointer to the array so they can write straightforward code instead of having to go through a callback.
* | update example to new packfile creation signatureEdward Thomson2013-11-071-1/+1
| |
* | blame sample: usage commentBen Straub2013-11-041-0/+1
| |
* | Fix warningsBen Straub2013-11-041-2/+2
| |
* | Reorganize and doc-commentify blame sample.Ben Straub2013-11-041-69/+96
| |
* | Standardize layout of blame sampleBen Straub2013-11-041-36/+47
| |
* | Merge pull request #1317 from libgit2/blameRussell Belfer2013-11-043-1/+167
|\ \ | | | | | | Blame Canada
| * \ Merge remote-tracking branch 'libgit2/development' into blameBen Straub2013-10-285-52/+63
| |\ \
| * | | Fix post-line-range iterationBen Straub2013-10-101-1/+5
| | | |
| * | | Include signatures in blame hunksBen Straub2013-10-101-6/+4
| | | |
| * | | Only show lines that had blame run on themBen Straub2013-10-101-12/+14
| | | |
| * | | Be more flexible with argument order and formatBen Straub2013-10-101-8/+31
| | | |
| * | | Ignore more built examplesBen Straub2013-10-091-0/+5
| | | |
| * | | Simplify loading blobBen Straub2013-10-091-13/+11
| | | |
| * | | Allow null bytes in blobBen Straub2013-10-091-10/+11
| | | |
| * | | Initialize threading, fix broken strncmpBen Straub2013-10-091-1/+4
| | | |
| * | | Un-remove init exampleBen Straub2013-10-091-1/+1
| | | |
| * | | Merge branch 'development' into blameBen Straub2013-10-033-6/+8
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: include/git2.h
| * | | | Fix typoBen Straub2013-09-291-1/+1
| | | | |
| * | | | Merge branch 'development' into blameBen Straub2013-09-252-1/+5
| |\ \ \ \
| * | | | | Add blame exampleBen Straub2013-09-163-1/+133
| | | | | |
* | | | | | Merge pull request #1934 from libgit2/relicense-examplesVicent Martí2013-11-0414-34/+250
|\ \ \ \ \ \ | | | | | | | | | | | | | | Relicense examples under CC0
| * | | | | | Replace copyright topmatter in example filesBen Straub2013-11-0212-33/+125
| | | | | | |
| * | | | | | Relicense examples under CC0Ben Straub2013-11-012-1/+125
| | |_|_|_|/ | |/| | | |
* | | | | | Merge pull request #1929 from libgit2/rb/misc-diff-fixesVicent Martí2013-11-041-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix some observed problems with incorrect diffs
| * | | | | | Make diff and status perform soft index reloadRussell Belfer2013-11-011-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes `git_index_read` to have two modes - a hard index reload that always resets the index to match the on-disk data (which was the old behavior) and a soft index reload that uses the timestamp / file size information and only replaces the index data if the file on disk has been modified. This then updates the git_status code to do a soft reload unless the new GIT_STATUS_OPT_NO_REFRESH flag is passed in. This also changes the behavior of the git_diff functions that use the index so that when an index is not explicitly passed in (i.e. when the functions call git_repository_index for you), they will also do a soft reload for you. This intentionally breaks the file signature of git_index_read because there has been some confusion about the behavior previously and it seems like all existing uses of the API should probably be examined to select the desired behavior.
* | | | | | examples: doc updateCarlos Martín Nieto2013-11-031-16/+42
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the explanation to reflect our use of git_status_list_new() and make the breaks in rocco more meaningful. Clarify why GIT_STATUS_CURRENT and index_to_workdir don't always imply each other. Fixes #1740.
* | | | | Merge pull request #1916 from libgit2/simplify-examplesVicent Martí2013-11-0116-950/+1255
|\ \ \ \ \ | | | | | | | | | | | | Fix examples to make the important stuff more obvious
| * | | | | Fix typosBen Straub2013-11-012-3/+3
| | | | | |
| * | | | | A few formatting changes for roccoCarlos Martín Nieto2013-11-014-8/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm not too happy about manually inserting < and > but those get output as html tags otherwise.
| * | | | | Update examples/README.mdRussell Belfer2013-10-311-6/+14
| | | | | |
| * | | | | Format comments for use with doccoBen Straub2013-10-315-72/+86
| | | | | |
| * | | | | Clean up showindex sampleBen Straub2013-10-301-23/+15
| | | | | |
| * | | | | Reorganize rev-parse exampleBen Straub2013-10-301-53/+56
| | | | | |
| * | | | | rev-list.c example: use common utils, reorganizeBen Straub2013-10-301-34/+28
| | | | | |
| * | | | | cat-file.c example: deploy helpers, reorgBen Straub2013-10-301-76/+78
| | | | | |
| * | | | | add.c: proper frontmatterBen Straub2013-10-301-3/+8
| | | | | |
| * | | | | init.c example: deploy more helpersBen Straub2013-10-301-7/+4
| | | | | |
| * | | | | add.c example: deploy helpers, reorgBen Straub2013-10-301-57/+61
| | | | | |
| * | | | | init example: deploy helpers, reorgBen Straub2013-10-301-127/+122
| | | | | |
| * | | | | Extract common example helpers and reorg examplesRussell Belfer2013-10-297-540/+808
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reorganizes a few of the examples so that the main function comes first with the argument parsing extracted into a helper that can come at the end of the file (so the example focuses more on the use of libgit2 instead of command line support). This also creates a shared examples/common.[ch] so that useful helper funcs can be shared across examples instead of repeated.
* | | | | Merge pull request #1918 from libgit2/cmn/indexer-namingVicent Martí2013-11-011-6/+6
|\ \ \ \ \ | | | | | | | | | | | | indexer: remove the stream infix
| * | | | | indexer: remove the stream infixCarlos Martín Nieto2013-10-301-6/+6
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was there to keep it apart from the one which read in from a file on disk. This other indexer does not exist anymore, so there is no need for anything other than git_indexer to refer to it. While here, rename _add() function to _append() and _finalize() to _commit(). The former change is cosmetic, while the latter avoids talking about "finalizing", which OO languages use to mean something completely different.
* | | | | Use gmtime() instead of gmtime_t()Linquize2013-10-311-3/+3
|/ / / / | | | | | | | | | | | | The latter is not available on Windows
* | | | Merge pull request #1891 from libgit2/cmn/fix-thin-packsVicent Martí2013-10-283-4/+20
|\ \ \ \ | | | | | | | | | | Add support for thin packs
| * | | | indexer: include the delta statsCarlos Martín Nieto2013-10-232-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The user is unable to derive the number of deltas in the pack, as that would require them to capture the stats exactly in the moment between download and final processing, which is abstracted away in the fetch. Capture these numbers for the user and expose them in the progress struct. The clone and fetch examples now also present this information to the user.
| * | | | examples: show used local objects in fetchCarlos Martín Nieto2013-10-231-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Show how many local objects were used to fix the thin pack in our fetch example.
| * | | | indexer: fix thin packsCarlos Martín Nieto2013-10-041-1/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | When given an ODB from which to read objects, the indexer will attempt to inject the missing bases at the end of the pack and update the header and trailer to reflect the new contents.