patch-ids: add flag to create the diff patch id using header only data
This will allow a diff patch id to be created using only the header data so that the contents of the file will not have to be loaded. Signed-off-by: Kevin Willford <kcwillford@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
683f17ec44
commit
3e8e32c32e
@@ -13,7 +13,7 @@ int commit_patch_id(struct commit *commit, struct diff_options *options,
|
||||
else
|
||||
diff_root_tree_sha1(commit->object.oid.hash, "", options);
|
||||
diffcore_std(options);
|
||||
return diff_flush_patch_id(options, sha1);
|
||||
return diff_flush_patch_id(options, sha1, 0);
|
||||
}
|
||||
|
||||
static int patch_id_cmp(struct patch_id *a,
|
||||
|
||||
Reference in New Issue
Block a user