]>
git.ipfire.org Git - thirdparty/git.git/blob - test-scrap-cache-tree.c
3 #include "cache-tree.h"
5 static struct lock_file index_lock
;
7 int main(int ac
, char **av
)
9 int fd
= hold_locked_index(&index_lock
, 1);
11 die("unable to read index file");
12 active_cache_tree
= NULL
;
13 if (write_cache(fd
, active_cache
, active_nr
)
14 || commit_lock_file(&index_lock
))
15 die("unable to write index file");