diff options
author | Russell Belfer <rb@github.com> | 2013-09-14 08:43:00 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-17 20:31:46 +0400 |
commit | 37f9e4093999498a25641018da36245d6a7cb008 (patch) | |
tree | 988585339ebb477c619364c020002ad5960d48c8 /src/ident.c | |
parent | 155fa2342d838bdb2aa873c95a42e091351bb69a (diff) |
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.
Diffstat (limited to 'src/ident.c')
0 files changed, 0 insertions, 0 deletions