summaryrefslogtreecommitdiff
path: root/patch-ids.c
diff options
context:
space:
mode:
authorKevin Willford <kewillf@microsoft.com>2016-07-29 16:19:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-29 21:10:01 (GMT)
commit3e8e32c32ef8e49bcfd715837d51aca30925fdfe (patch)
treebae548134d89d11f6cb6a59992805f410a67da43 /patch-ids.c
parent683f17ec440afafd2b375fd1b7a80a1aca219b4f (diff)
downloadgit-3e8e32c32ef8e49bcfd715837d51aca30925fdfe.zip
git-3e8e32c32ef8e49bcfd715837d51aca30925fdfe.tar.gz
git-3e8e32c32ef8e49bcfd715837d51aca30925fdfe.tar.bz2
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>
Diffstat (limited to 'patch-ids.c')
-rw-r--r--patch-ids.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch-ids.c b/patch-ids.c
index bafaae2..69a14a3 100644
--- a/patch-ids.c
+++ b/patch-ids.c
@@ -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,