]> git.ipfire.org Git - thirdparty/git.git/blame - test-scrap-cache-tree.c
Makefile: have python scripts depend on NO_PYTHON setting
[thirdparty/git.git] / test-scrap-cache-tree.c
CommitLineData
1aed2fe3
TR
1#include "cache.h"
2#include "tree.h"
3#include "cache-tree.h"
4
5static struct lock_file index_lock;
6
7int main(int ac, char **av)
8{
03b86647 9 hold_locked_index(&index_lock, 1);
1aed2fe3
TR
10 if (read_cache() < 0)
11 die("unable to read index file");
12 active_cache_tree = NULL;
03b86647 13 if (write_locked_index(&the_index, &index_lock, COMMIT_LOCK))
1aed2fe3
TR
14 die("unable to write index file");
15 return 0;
16}