examples/showindex.c


Log

Author Commit Date CI Message
Ben Straub dbdb22b3 2013-10-30T13:20:08 Clean up showindex sample
Russell Belfer 37f9e409 2013-09-13T21:43:00 Some tests with ident and crlf filters Fixed the filter order to match core Git, too. This test demonstrates an interesting behavior of core Git (which is totally reasonable and which libgit2 matches, although mostly by coincidence). If you use the ident filter and commit a file with a garbage ident in it, like '$Id: this is just garbage$' and then immediately do a 'git checkout-index' with the new file, Git will not consider the file out of date and will not overwrite the file with an updated $Id$. Libgit2 has the same behavior. If you remove the file and then do a checkout-index, it will be replaced with a filtered version that has injected the OID correctly.
Russell Belfer dbc4aa07 2012-12-28T22:00:24 Update showindex example I find the showindex example to be pretty useful on occasion, but there were are couple of output tweaks I wanted, plus I wanted the ability to specify a path to an actual index file instead of having to open the whole repository. This makes those changes and expands the example slightly.
Russell Belfer b90500f0 2012-11-01T14:08:30 Improve docs, examples, warnings This improves docs in some of the public header files, cleans up and improves some of the example code, and fixes a couple of pedantic warnings in places.
Edward Thomson f45ec1a0 2012-10-29T20:04:21 index refactoring
Scott Chacon 96da90ae 2011-06-15T09:38:55 update examples content to be compilable and up to date
Scott Chacon 388f37b3 2011-06-14T09:27:46 add examples for docs