git: 66c655dd04ae - main - devel/git-cinnabar: unbreak after c472db1cb7c6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 00:07:01 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=66c655dd04ae5a595a2218503d588c33973570ec commit 66c655dd04ae5a595a2218503d588c33973570ec Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2022-04-20 23:58:56 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-04-21 00:05:58 +0000 devel/git-cinnabar: unbreak after c472db1cb7c6 patch -p1 -F0 -o helper/fast-import.patched.c git-core/builtin/fast-import.c < helper/fast-import.c.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/builtin/fast-import.c b/builtin/fast-import.c |index 20406f6775..7ff0911c2c 100644 |--- a/builtin/fast-import.c |+++ b/builtin/fast-import.c -------------------------- Patching file git-core/builtin/fast-import.c using Plan A... Hunk #1 failed at 19. Hunk #2 succeeded at 747 (offset 9 lines). Hunk #3 succeeded at 848 (offset 9 lines). Hunk #4 failed at 867. Hunk #5 succeeded at 967 (offset 9 lines). Hunk #6 succeeded at 1653 (offset 9 lines). Hunk #7 succeeded at 2222 (offset 9 lines). Hunk #8 succeeded at 2288 (offset 9 lines). 2 out of 8 hunks failed--saving rejects to helper/fast-import.patched.c.rej done --- devel/git-cinnabar/Makefile | 2 +- devel/git-cinnabar/files/patch-git-2.36 | 131 ++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+), 1 deletion(-) diff --git a/devel/git-cinnabar/Makefile b/devel/git-cinnabar/Makefile index 94395a78752b..73d6780446d5 100644 --- a/devel/git-cinnabar/Makefile +++ b/devel/git-cinnabar/Makefile @@ -1,6 +1,6 @@ PORTNAME= git-cinnabar DISTVERSION= 0.5.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org diff --git a/devel/git-cinnabar/files/patch-git-2.36 b/devel/git-cinnabar/files/patch-git-2.36 new file mode 100644 index 000000000000..89144ecdc2bf --- /dev/null +++ b/devel/git-cinnabar/files/patch-git-2.36 @@ -0,0 +1,131 @@ +https://github.com/glandium/git-cinnabar/commit/16d11703acfe + +--- helper/GIT-VERSION.mk.orig 2021-11-19 21:23:13 UTC ++++ helper/GIT-VERSION.mk +@@ -1,2 +1,2 @@ +-GIT_VERSION ?= v2.35.1 ++GIT_VERSION ?= v2.36.0 + WINDOWS_GIT_VERSION ?= $(GIT_VERSION).windows.1 +--- helper/cinnabar-fast-import.c.orig 2021-11-19 21:23:13 UTC ++++ helper/cinnabar-fast-import.c +@@ -523,30 +523,18 @@ static void do_set(struct string_list *args) + } + + #ifdef _WIN32 +-int write_object_file_flags(const void *buf, size_t len, const char *type, ++int write_object_file_flags(const void *buf, size_t len, enum object_type type, + struct object_id *oid, unsigned flags) + #else +-int write_object_file_flags(const void *buf, unsigned long len, const char *type, ++int write_object_file_flags(const void *buf, unsigned long len, enum object_type type, + struct object_id *oid, unsigned flags) + #endif + { + struct strbuf data; +- enum object_type t; +- if (type == tree_type) { +- t = OBJ_TREE; +- } else if (type == blob_type) { +- t = OBJ_BLOB; +- } else if (type == commit_type) { +- t = OBJ_COMMIT; +- } else if (type == tag_type) { +- t = OBJ_TAG; +- } else { +- die("Unknown type"); +- } + data.buf = (void *)buf; + data.len = len; + data.alloc = len; +- store_object(t, &data, NULL, oid, 0); ++ store_object(type, &data, NULL, oid, 0); + return 0; + } + +--- helper/fast-import.c.patch.orig 2021-11-19 21:23:13 UTC ++++ helper/fast-import.c.patch +@@ -1,16 +1,25 @@ diff --git a/builtin/fast-import.c b/builtin/fast-impo + diff --git a/builtin/fast-import.c b/builtin/fast-import.c +-index 20406f6775..7ff0911c2c 100644 ++index 28d3193c38..2b3aeaa4d5 100644 + --- a/builtin/fast-import.c + +++ b/builtin/fast-import.c +-@@ -19,6 +19,7 @@ +- #include "mem-pool.h" ++@@ -20,6 +20,7 @@ + #include "commit-reach.h" + #include "khash.h" ++ #include "date.h" + +#include "shallow.h" + + #define PACK_ID_BITS 16 + #define MAX_PACK_ID ((1<<PACK_ID_BITS)-1) +-@@ -737,7 +738,7 @@ static struct tree_content *dup_tree_content(struct tree_content *s) ++@@ -257,7 +258,7 @@ static struct string_list sub_marks_to = STRING_LIST_INIT_DUP; ++ static kh_oid_map_t *sub_oid_map; ++ ++ /* Where to write output of cat-blob commands */ ++-static int cat_blob_fd = STDOUT_FILENO; +++int cat_blob_fd = STDOUT_FILENO; ++ ++ static void parse_argv(void); ++ static void parse_get_mark(const char *p); ++@@ -746,7 +747,7 @@ static struct tree_content *dup_tree_content(struct tree_content *s) + return d; + } + +@@ -19,7 +28,7 @@ +static void real_start_packfile(void) + { + struct strbuf tmp_file = STRBUF_INIT; + struct packed_git *p; +-@@ -838,7 +839,7 @@ static int loosen_small_pack(const struct packed_git *p) ++@@ -847,7 +848,7 @@ static int loosen_small_pack(const struct packed_git *p) + return run_command(&unpack); + } + +@@ -28,15 +37,15 @@ +static void real_end_packfile(void) + { + static int running; + +-@@ -857,6 +858,7 @@ static void end_packfile(void) ++@@ -866,6 +867,7 @@ static void end_packfile(void) + + close_pack_windows(pack_data); +- finalize_hashfile(pack_file, cur_pack_oid.hash, 0); ++ finalize_hashfile(pack_file, cur_pack_oid.hash, FSYNC_COMPONENT_PACK, 0); + + pack_file = NULL; + fixup_pack_header_footer(pack_data->pack_fd, pack_data->hash, + pack_data->pack_name, object_count, + cur_pack_oid.hash, pack_size); +-@@ -956,6 +958,9 @@ static int store_object( ++@@ -965,6 +967,9 @@ static int store_object( + e->pack_id = MAX_PACK_ID; + e->idx.offset = 1; /* just not zero! */ + duplicate_count_by_type[type]++; +@@ -46,7 +55,7 @@ + } + return 1; + } + +-@@ -1639,7 +1644,7 @@ static int update_branch(struct branch *b) ++@@ -1648,7 +1653,7 @@ static int update_branch(struct branch *b) + return 0; + } + +@@ -55,7 +64,7 @@ +void dump_branches(void) + { + unsigned int i; + struct branch *b; +-@@ -2208,7 +2213,9 @@ static int parse_mapped_oid_hex(const char *hex, struct object_id *oid, const ch ++@@ -2217,7 +2222,9 @@ static int parse_mapped_oid_hex(const char *hex, struct object_id *oid, const ch + * Complain if the following character is not what is expected, + * either a space or end of the string. + */ +@@ -66,7 +75,7 @@ +static uintmax_t real_parse_mark_ref(const char *p, c + { + uintmax_t mark; + +-@@ -2272,9 +2279,8 @@ static void file_change_m(const char *p, struct branch *b) ++@@ -2281,9 +2288,8 @@ static void file_change_m(const char *p, struct branch *b) + case S_IFDIR: + case S_IFGITLINK: + /* ok */