Merge branch 'rs/add-dry-run-without-objects'
Stop "git add --dry-run" from creating new blob and tree objects. * rs/add-dry-run-without-objects: add: don't write objects with --dry-run
This commit is contained in:
@ -738,7 +738,7 @@ int add_to_index(struct index_state *istate, const char *path, struct stat *st,
|
||||
int intent_only = flags & ADD_CACHE_INTENT;
|
||||
int add_option = (ADD_CACHE_OK_TO_ADD|ADD_CACHE_OK_TO_REPLACE|
|
||||
(intent_only ? ADD_CACHE_NEW_ONLY : 0));
|
||||
int hash_flags = HASH_WRITE_OBJECT;
|
||||
unsigned hash_flags = pretend ? 0 : HASH_WRITE_OBJECT;
|
||||
struct object_id oid;
|
||||
|
||||
if (flags & ADD_CACHE_RENORMALIZE)
|
||||
|
||||
Reference in New Issue
Block a user