svn commit: r509311 - in head/devel/git-cinnabar: . files
Jan Beich
jbeich at FreeBSD.org
Mon Aug 19 20:29:35 UTC 2019
Author: jbeich
Date: Mon Aug 19 20:29:34 2019
New Revision: 509311
URL: https://svnweb.freebsd.org/changeset/ports/509311
Log:
devel/git-cinnabar: rebuild and unbreak after r509301
../helper/cinnabar-fast-import.c:250:51: error: too few arguments to function call, expected 5, have 4
if (!get_tree_entry(note, path, &git_oid, &mode))
~~~~~~~~~~~~~~ ^
./tree-walk.h:71:1: note: 'get_tree_entry' declared here
int get_tree_entry(struct repository *, const struct object_id *, const char *, struct object_id *, unsign...
^
Added:
head/devel/git-cinnabar/files/
head/devel/git-cinnabar/files/patch-git-2.23 (contents, props changed)
Modified:
head/devel/git-cinnabar/Makefile (contents, props changed)
Modified: head/devel/git-cinnabar/Makefile
==============================================================================
--- head/devel/git-cinnabar/Makefile Mon Aug 19 20:25:28 2019 (r509310)
+++ head/devel/git-cinnabar/Makefile Mon Aug 19 20:29:34 2019 (r509311)
@@ -2,7 +2,7 @@
PORTNAME= git-cinnabar
DISTVERSION= 0.5.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MAINTAINER= jbeich at FreeBSD.org
Added: head/devel/git-cinnabar/files/patch-git-2.23
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/git-cinnabar/files/patch-git-2.23 Mon Aug 19 20:29:34 2019 (r509311)
@@ -0,0 +1,67 @@
+https://github.com/glandium/git-cinnabar/commit/567078fb6031
+
+--- helper/GIT-VERSION.mk.orig 2019-07-01 04:57:48 UTC
++++ helper/GIT-VERSION.mk
+@@ -1,2 +1,2 @@
+-GIT_VERSION ?= v2.22.0
++GIT_VERSION ?= v2.23.0
+ WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1
+--- helper/cinnabar-fast-import.c.orig 2019-07-01 04:57:48 UTC
++++ helper/cinnabar-fast-import.c
+@@ -247,7 +247,8 @@ static uintmax_t parse_mark_ref(const char *p, char **
+ if (path_end) {
+ unsigned short mode;
+ char *path = xstrndup(*endptr, path_end - *endptr);
+- if (!get_tree_entry(note, path, &git_oid, &mode))
++ if (!get_tree_entry(the_repository, note, path,
++ &git_oid, &mode))
+ note = &git_oid;
+ else
+ note = &empty_tree;
+--- helper/cinnabar-helper.c.orig 2019-07-01 04:57:48 UTC
++++ helper/cinnabar-helper.c
+@@ -1605,7 +1605,7 @@ static void upgrade_manifest_tree_v1(const struct obje
+ struct oid_map_entry k, *old2new;
+
+ oidcpy(&k.old_oid, tree_id);
+- hashmap_entry_init(&k.ent, sha1hash(k.old_oid.hash));
++ hashmap_entry_init(&k.ent, oidhash(&k.old_oid));
+ old2new = hashmap_get(cache, &k, NULL);
+ if (!old2new) {
+ struct strbuf tree_buf = STRBUF_INIT;
+@@ -1748,7 +1748,7 @@ static void upgrade_manifest(struct commit *commit,
+ struct oid_map_entry k;
+ struct commit *p;
+ oidcpy(&k.old_oid, &commit->parents->item->object.oid);
+- hashmap_entry_init(&k.ent, sha1hash(k.old_oid.hash));
++ hashmap_entry_init(&k.ent, oidhash(&k.old_oid));
+ entry = hashmap_get(&track->commit_cache, &k, NULL);
+ if (!entry)
+ die("Something went wrong");
+@@ -1784,7 +1784,7 @@ static void upgrade_manifest(struct commit *commit,
+ struct oid_map_entry k;
+ if (get_oid_hex(cursor, &k.old_oid))
+ die("Invalid sha1");
+- hashmap_entry_init(&k.ent, sha1hash(k.old_oid.hash));
++ hashmap_entry_init(&k.ent, oidhash(&k.old_oid));
+ entry = hashmap_get(&track->commit_cache, &k, NULL);
+ if (!entry)
+ die("Something went wrong");
+@@ -1794,7 +1794,7 @@ static void upgrade_manifest(struct commit *commit,
+ }
+
+ entry = xmalloc(sizeof(*entry));
+- hashmap_entry_init(&entry->ent, sha1hash(commit->object.oid.hash));
++ hashmap_entry_init(&entry->ent, oidhash(&commit->object.oid));
+ oidcpy(&entry->old_oid, &commit->object.oid);
+ store_git_commit(&new_commit, &entry->new_oid);
+ hashmap_add(&track->commit_cache, entry);
+@@ -1950,7 +1950,7 @@ static void recurse_create_git_tree(const struct objec
+ {
+ struct oid_map_entry k, *cache_entry;
+
+- hashmap_entry_init(&k.ent, sha1hash(tree_id->hash));
++ hashmap_entry_init(&k.ent, oidhash(tree_id));
+ oidcpy(&k.old_oid, tree_id);
+ cache_entry = hashmap_get(cache, &k, NULL);
+ if (!cache_entry) {
More information about the svn-ports-all
mailing list