View | Details | Raw Unified | Return to bug 252244 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/git-cinnabar/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	git-cinnabar
3
PORTNAME=	git-cinnabar
4
DISTVERSION=	0.5.6
4
DISTVERSION=	0.5.6
5
PORTREVISION=	1
5
CATEGORIES=	devel
6
CATEGORIES=	devel
6
7
7
MAINTAINER=	jbeich@FreeBSD.org
8
MAINTAINER=	jbeich@FreeBSD.org
(-)b/devel/git-cinnabar/files/patch-git-2.30 (+49 lines)
Added Link Here
1
https://github.com/glandium/git-cinnabar/commit/2db9fad6a3df
2
3
--- helper/GIT-VERSION.mk.orig	2020-11-12 02:19:34 UTC
4
+++ helper/GIT-VERSION.mk
5
@@ -1,2 +1,2 @@
6
-GIT_VERSION ?= v2.29.2
7
+GIT_VERSION ?= v2.30.0
8
 WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1
9
--- helper/cinnabar-fast-import.c.orig	2020-11-12 02:19:34 UTC
10
+++ helper/cinnabar-fast-import.c
11
@@ -264,7 +264,7 @@ static uintmax_t parse_mark_ref(const char *p, char **
12
 		e->pack_id = MAX_PACK_ID;
13
 		e->idx.offset = 1;
14
 	}
15
-	insert_mark(marks, 2, e);
16
+	insert_mark(&marks, 2, e);
17
 	return 2;
18
 }
19
 
20
--- helper/cinnabar-helper.c.orig	2020-11-12 02:19:34 UTC
21
+++ helper/cinnabar-helper.c
22
@@ -1978,8 +1978,8 @@ static void do_upgrade(struct string_list *args)
23
 				free_tree_buffer(get_commit_tree(manifest_commit));
24
 			}
25
 		}
26
-		hashmap_free_entries(&track.commit_cache, struct oid_map_entry, ent);
27
-		hashmap_free_entries(&track.tree_cache, struct oid_map_entry, ent);
28
+		hashmap_clear_and_free(&track.commit_cache, struct oid_map_entry, ent);
29
+		hashmap_clear_and_free(&track.tree_cache, struct oid_map_entry, ent);
30
 		oidset_clear(&track.manifests);
31
 		stop_progress(&track.progress);
32
 	}
33
@@ -2371,7 +2371,7 @@ static void do_reload(struct string_list *args)
34
 
35
 	oidset_clear(&hg2git_seen);
36
 
37
-	hashmap_free_entries(&git_tree_cache, struct oid_map_entry, ent);
38
+	hashmap_clear_and_free(&git_tree_cache, struct oid_map_entry, ent);
39
 	hashmap_init(&git_tree_cache, oid_map_entry_cmp, NULL, 0);
40
 
41
 	oid_array_clear(&manifest_heads);
42
@@ -2574,6 +2574,6 @@ int main(int argc, const char *argv[])
43
 		free_notes(&files_meta);
44
 
45
 	oidset_clear(&hg2git_seen);
46
-	hashmap_free_entries(&git_tree_cache, struct oid_map_entry, ent);
47
+	hashmap_clear_and_free(&git_tree_cache, struct oid_map_entry, ent);
48
 	return 0;
49
 }

Return to bug 252244