Revert "Merge branch 'en/header-split-cache-h-part-3' into next"

This reverts commit 76ebce0b7a,
reversing changes made to 62e19d66fb,
in preparation for redoing the topic to make it buildable from the
source.
This commit is contained in:
Junio C Hamano
2023-06-21 13:04:30 -07:00
parent a1a0a3961a
commit deb00029a0
312 changed files with 1895 additions and 2180 deletions

View File

@ -6,7 +6,7 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "cache.h"
#include "advice.h"
#include "config.h"
#include "lockfile.h"
@ -15,6 +15,7 @@
#include "dir.h"
#include "editor.h"
#include "environment.h"
#include "builtin.h"
#include "diff.h"
#include "diffcore.h"
#include "commit.h"
@ -29,9 +30,6 @@
#include "utf8.h"
#include "object-name.h"
#include "parse-options.h"
#include "path.h"
#include "preload-index.h"
#include "read-cache.h"
#include "string-list.h"
#include "rerere.h"
#include "unpack-trees.h"
@ -40,7 +38,6 @@
#include "gpg-interface.h"
#include "column.h"
#include "sequencer.h"
#include "sparse-index.h"
#include "mailmap.h"
#include "help.h"
#include "commit-reach.h"
@ -450,8 +447,7 @@ static const char *prepare_index(const char **argv, const char *prefix,
if (all || (also && pathspec.nr)) {
repo_hold_locked_index(the_repository, &index_lock,
LOCK_DIE_ON_ERROR);
add_files_to_cache(the_repository, also ? prefix : NULL,
&pathspec, 0, 0);
add_files_to_cache(also ? prefix : NULL, &pathspec, 0);
refresh_cache_or_die(refresh_flags);
cache_tree_update(&the_index, WRITE_TREE_SILENT);
if (write_locked_index(&the_index, &index_lock, 0))