summaryrefslogtreecommitdiff
path: root/tests-clar/diff/blob.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-02-27 04:31:05 +0100
committerVicent Martí <tanoku@gmail.com>2012-02-27 05:30:07 +0100
commit44b1ff4c1209c34360cc0c43761c40f5f5020886 (patch)
treeec52cea445b6125fecc6e059129a031e8d89d5a4 /tests-clar/diff/blob.c
parent13224ea4aad9a1b3c9cc4c992ceaea9af623e047 (diff)
downloadlibgit2-44b1ff4c1209c34360cc0c43761c40f5f5020886.tar.gz
filter: Apply filters before writing a file to the ODB
Initial implementation. The relevant code is in `blob.c`: the blob write function has been split into smaller functions. - Directly write a file to the ODB in streaming mode - Directly write a symlink to the ODB in direct mode - Apply a filter, and write a file to the ODB in direct mode When trying to write a file, we first call `git_filter__load_for_file`, which populates a filters array with the required filters based on the filename. If no filters are resolved to the filename, we can write to the ODB in streaming mode straight from disk. Otherwise, we load the whole file in memory and use double-buffering to apply the filter chain. We finish by writing the file as a whole to the ODB.
Diffstat (limited to 'tests-clar/diff/blob.c')
0 files changed, 0 insertions, 0 deletions