Edward Thomson
1e46d54584
crlf tests: ensure that Unix obeys autocrlf=true
...
All platforms do terrible, horrible, no good, very bad translation
when core.autocrlf=true. It's not just Windows!
2015-06-22 12:00:26 -04:00
Edward Thomson
2eecc2886b
Introduce git_filter_list_contains
...
`git_filter_list_contains` can be used to query a filter list to
determine if a given filter will be run.
2015-06-10 14:43:49 -04:00
Colomban Wendling
1ecbcd8e51
Fix ident replacement to match Git behavior
...
Git inserts a space after the SHA1 (as of 2.1.4 at least), so do the
same.
2015-05-26 19:56:06 +02:00
Edward Thomson
78db0239db
squash some leaks
2015-03-24 20:58:00 +00:00
Edward Thomson
0b3dd8fbed
filter::file tests: test filter_list_apply_to_file
...
Test that filter_list_apply_to_file works and can accept repo-relative
paths.
2015-03-06 15:16:05 -05:00
Edward Thomson
feb0e02286
tests: separate INVASIVE filesystem tests
...
Introduce GITTEST_INVASIVE_FS_STRUCTURE for things that are invasive
to your filesystem structure (like creating folders at your filesystem
root) and GITTEST_INVASIVE_FS_SIZE for things that write lots of data.
2015-02-19 12:14:06 -05:00
Edward Thomson
795eaccd66
git_filter_opt_t -> git_filter_flag_t
...
For consistency with the rest of the library, where an opt is an
options *structure*.
2015-02-19 11:09:54 -05:00
Edward Thomson
f7c0125f47
filter streams: base -> parent
2015-02-18 10:24:34 -05:00
Edward Thomson
b75f15aaf1
git_writestream: from git_filter_stream
2015-02-18 10:24:23 -05:00
Edward Thomson
8c2dfb38db
filter: test a large file through the stream
...
Test pushing a file on-disk into a streaming filter that compresses
it into the ODB, and inflates it back into the working directory.
2015-02-17 17:00:57 -05:00
Linquize
b4c6a9da93
Add files and tests with many UTF-8 chars and few UTF-8 chars
2015-01-20 16:17:48 -06:00
Edward Thomson
49837fd49f
Ignore core.safecrlf=warn until we have a warn infrastructure
2014-05-30 11:30:53 -05:00
Russell Belfer
16798d08cf
Make core.safecrlf work on LF-ending platforms
...
If you enabled core.safecrlf on an LF-ending platform, we would
error even for files with all LFs. We should only be warning on
irreversible mappings, I think.
2014-05-19 14:57:09 -07:00
Russell Belfer
5269008cf6
Add filter options and ALLOW_UNSAFE
...
Diff and status do not want core.safecrlf to actually raise an
error regardless of the setting, so this extends the filter API
with an additional options flags parameter and adds a flag so that
filters can be applied with GIT_FILTER_OPT_ALLOW_UNSAFE, indicating
that unsafe filter application should be downgraded from a failure
to a warning.
2014-05-06 16:01:49 -07:00
Edward Thomson
855c66de66
Introduce core.safecrlf handling
2014-04-07 21:09:09 -07:00
Edward Thomson
2a528bc088
Fix filter test for CRLF->LF issues
2014-02-11 19:05:52 -06:00
Carlos Martín Nieto
d541170c77
index: rename an entry's id to 'id'
...
This was not converted when we converted the rest, so do it now.
2014-01-25 08:15:44 +01:00
Edward Thomson
6adcaab70c
Handle git_buf's from users more liberally
2014-01-08 10:08:23 -08:00
Ben Straub
1782038144
Rename tests-clar to tests
2013-11-14 14:05:52 -08:00