diff options
author | Jeff Smith | 2017-08-09 19:02:56 -0500 |
---|---|---|
committer | Jason A. Donenfeld | 2017-08-10 15:58:24 +0200 |
commit | 86a6d358f7a6c2432fde86b9e3c5011a656f20e4 (patch) | |
tree | 0f43ea3514fba419d5a5d99cf731f96daa2765c0 /shared.c | |
parent | 3d33b46df24d4dee140d0aafb1eba5fffa314cf0 (diff) | |
download | cgit-86a6d358f7a6c2432fde86b9e3c5011a656f20e4.tar.gz cgit-86a6d358f7a6c2432fde86b9e3c5011a656f20e4.tar.bz2 cgit-86a6d358f7a6c2432fde86b9e3c5011a656f20e4.zip |
git: update to v2.14
Numerous changes were made to git functions to use an object_id
structure rather than sending sha1 hashes as raw unsigned character
arrays. The functions that affect cgit are: parse_object,
lookup_commit_reference, lookup_tag, lookup_tree, parse_tree_indirect,
diff_root_tree_sha1, diff_tree_sha1, and format_display_notes.
Commit b2141fc (config: don't include config.h by default) made it
necessary to that config.h be explicitly included when needed.
Commit 07a3d41 (grep: remove regflags from the public grep_opt API)
removed one way of specifying the ignore-case grep option.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -160,7 +160,7 @@ static struct refinfo *cgit_mk_refinfo(const char *refname, const struct object_ | |||
160 | 160 | ||
161 | ref = xmalloc(sizeof (struct refinfo)); | 161 | ref = xmalloc(sizeof (struct refinfo)); |
162 | ref->refname = xstrdup(refname); | 162 | ref->refname = xstrdup(refname); |
163 | ref->object = parse_object(oid->hash); | 163 | ref->object = parse_object(oid); |
164 | switch (ref->object->type) { | 164 | switch (ref->object->type) { |
165 | case OBJ_TAG: | 165 | case OBJ_TAG: |
166 | ref->tag = cgit_parse_tag((struct tag *)ref->object); | 166 | ref->tag = cgit_parse_tag((struct tag *)ref->object); |
@@ -360,9 +360,9 @@ void cgit_diff_tree(const struct object_id *old_oid, | |||
360 | diff_setup_done(&opt); | 360 | diff_setup_done(&opt); |
361 | 361 | ||
362 | if (old_oid && !is_null_oid(old_oid)) | 362 | if (old_oid && !is_null_oid(old_oid)) |
363 | diff_tree_sha1(old_oid->hash, new_oid->hash, "", &opt); | 363 | diff_tree_oid(old_oid, new_oid, "", &opt); |
364 | else | 364 | else |
365 | diff_root_tree_sha1(new_oid->hash, "", &opt); | 365 | diff_root_tree_oid(new_oid, "", &opt); |
366 | diffcore_std(&opt); | 366 | diffcore_std(&opt); |
367 | diff_flush(&opt); | 367 | diff_flush(&opt); |
368 | 368 | ||