#include "cache.h"
#include "strbuf.h"
#include "quote.h"
+#include "cache-tree.h"
+ #include "tree-walk.h"
/*
* Default to not allowing changes to the list of files. The
case '-':
ce->ce_mode &= htonl(~0111); break;
default:
- return -1;
+ goto fail;
}
+ cache_tree_invalidate_path(active_cache_tree, path);
active_cache_changed = 1;
- return 0;
+ report("chmod %cx '%s'", flip, path);
+ return;
+ fail:
+ die("git-update-index: cannot chmod %cx '%s'", flip, path);
}
static struct cache_file cache_file;