* Helper functions for tree diff generation
*/
-#define USE_THE_REPOSITORY_VARIABLE
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "git-compat-util.h"
#include "hash.h"
#include "tree.h"
#include "tree-walk.h"
-#include "environment.h"
#include "repository.h"
#include "dir.h"
strbuf_add(base, path, pathlen);
p = combine_diff_path_new(base->buf, base->len, mode,
- oid ? oid : null_oid(the_hash_algo),
+ oid ? oid : null_oid(opt->repo->hash_algo),
nparent);
strbuf_setlen(base, old_baselen);
mode_i = tp[i].entry.mode;
}
else {
- oid_i = null_oid(the_hash_algo);
+ oid_i = null_oid(opt->repo->hash_algo);
mode_i = 0;
}