examples/blame.c


Log

Author Commit Date CI Message
Patrick Steinhardt e7bb1fe8 2019-06-27T15:14:08 examples: avoid passing signed integer to `memchr` The memchr(3P) function expects a `size_t` as its last parameter, but we do pass it an object size, which is of signed type `git_off_t`. As we can be sure that the result will be non-negative, let's just cast the parameter to a `size_t`.
Edward Thomson ede458b4 2019-06-25T14:48:10 example: use `git_off_t` for the object size
Edward Thomson 5d92e547 2019-06-08T17:28:35 oid: `is_zero` instead of `iszero` The only function that is named `issomething` (without underscore) was `git_oid_iszero`. Rename it to `git_oid_is_zero` for consistency with the rest of the library.
Patrick Steinhardt b106620d 2019-04-16T10:56:18 examples: move MSVC compatibility macros into common header We currently have two locations in our examples where we define the same compatibility wrappers for MSVC. Move them into "common.h" to avoid duplication and make them available to other examples.
Patrick Steinhardt ead10785 2019-01-24T11:31:49 examples: create common lg2 executable 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.
Edward Thomson d202bb7d 2015-06-29T21:48:35 examples: clean up some warnings
Vicent Marti 2e1e0f10 2014-11-21T17:24:55 blame: Do not assume blob contents are NULL-terminated
Carlos Martín Nieto 799e22ea 2014-10-23T17:34:41 Rename git_threads_ to git_libgit2_ 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.
Miha b5212858 2014-03-03T11:40:22 Merge remote-tracking branch 'remotes/upstream/development' into development
Miha 300f4412 2014-02-25T11:56:11 - BUGFIX #2133 (@fourplusone) in smart_protocol.c - added MSVC cmake definitions to disable warnings - general.c is rewritten so it is ansi-c compatible and compiles ok on microsoft windows - some MSVC reported warning fixes
Juan Rubén 899bd19a 2014-02-24T21:20:57 Document enumerator and rewording
Juan Rubén c7c83394 2014-02-21T00:22:07 Add option to limit blame to first parent
Linquize 1664aaaa 2013-11-05T23:39:05 Make blame example compile on MSVC
Linquize fb190bbb 2013-11-12T19:44:13 Fix warnings
Ben Straub b4794925 2013-11-04T15:54:11 blame sample: usage comment
Ben Straub e6b85be7 2013-11-04T15:48:35 Reorganize and doc-commentify blame sample.
Ben Straub b7bb086b 2013-11-04T15:25:26 Standardize layout of blame sample
Ben Straub 607fe733 2013-10-10T14:30:31 Fix post-line-range iteration
Ben Straub c1ca2b67 2013-10-10T14:30:05 Include signatures in blame hunks
Ben Straub ebd67243 2013-10-10T13:56:45 Only show lines that had blame run on them
Ben Straub d2e7532f 2013-10-10T13:56:28 Be more flexible with argument order and format
Ben Straub 43a07b86 2013-10-09T16:16:43 Simplify loading blob
Ben Straub 2ccc84d2 2013-10-09T16:07:36 Allow null bytes in blob
Ben Straub cb45dafa 2013-10-09T16:07:17 Initialize threading, fix broken strncmp
Ben Straub de8fe729 2013-09-29T10:46:41 Fix typo
Ben Straub 4c7fdb4d 2013-09-16T16:27:10 Add blame example