git: df30c96bfa37 - main - devel/got: update to 0.101

From: Christian Weisgerber <naddy_at_FreeBSD.org>
Date: Fri, 12 Jul 2024 15:27:03 UTC
The branch main has been updated by naddy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=df30c96bfa37c284947cd7dfd45b460e50031af2

commit df30c96bfa37c284947cd7dfd45b460e50031af2
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2024-07-12 15:25:57 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2024-07-12 15:25:57 +0000

    devel/got: update to 0.101
    
    User-visible changes:
    - fix histedit -e bug where reverting all the changes caused histedit -c cycles
    - tog: fix jumping to the next commit from the diff view with the J key
    - tog: fix horizontal scroll bug that draws a trailing '.'
---
 devel/got/Makefile              |  2 +-
 devel/got/distinfo              |  6 +++---
 devel/got/files/patch-configure |  4 ++--
 devel/got/files/patch-tog_tog.c | 26 ++++++++++++++++++++++++++
 4 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/devel/got/Makefile b/devel/got/Makefile
index 382ebadf7ab1..ee9849a6f1bc 100644
--- a/devel/got/Makefile
+++ b/devel/got/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	got
-DISTVERSION=	0.100
+DISTVERSION=	0.101
 CATEGORIES=	devel
 MASTER_SITES=	https://gameoftrees.org/releases/portable/
 DISTNAME=	got-portable-${DISTVERSION}
diff --git a/devel/got/distinfo b/devel/got/distinfo
index f275e36e09f9..0258cf1065fe 100644
--- a/devel/got/distinfo
+++ b/devel/got/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1717453535
-SHA256 (got-portable-0.100.tar.gz) = fc3a8a2067ff699d3d68bfeb07bb5ef806ae1e627e98e4eb5446e4a93f565012
-SIZE (got-portable-0.100.tar.gz) = 1482599
+TIMESTAMP = 1720791919
+SHA256 (got-portable-0.101.tar.gz) = 25064182c731a0cbf80e48bbeecf2d628e2be41046f84aec0d89d8e7f6a6dcc0
+SIZE (got-portable-0.101.tar.gz) = 1479135
diff --git a/devel/got/files/patch-configure b/devel/got/files/patch-configure
index 16454c6bb8e5..81789b834cc0 100644
--- a/devel/got/files/patch-configure
+++ b/devel/got/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig	2024-04-25 19:31:02 UTC
+--- configure.orig	2024-07-12 06:21:23 UTC
 +++ configure
-@@ -10046,9 +10046,9 @@ fi
+@@ -9818,9 +9818,9 @@ fi
  
  fi
  
diff --git a/devel/got/files/patch-tog_tog.c b/devel/got/files/patch-tog_tog.c
new file mode 100644
index 000000000000..314b3a2c03af
--- /dev/null
+++ b/devel/got/files/patch-tog_tog.c
@@ -0,0 +1,26 @@
+--- tog/tog.c.orig	2024-07-12 06:14:53 UTC
++++ tog/tog.c
+@@ -42,6 +42,7 @@
+ #include <pthread.h>
+ #include <libgen.h>
+ #include <regex.h>
++#include <sched.h>
+ 
+ #include "got_version.h"
+ #include "got_error.h"
+@@ -1720,6 +1721,15 @@ view_input(struct tog_view **new, int *done, struct to
+ 	}
+ 
+ 	if (view->searching && !view->search_next_done) {
++		errcode = pthread_mutex_unlock(&tog_mutex);
++		if (errcode)
++			return got_error_set_errno(errcode,
++			    "pthread_mutex_unlock");
++		sched_yield();
++		errcode = pthread_mutex_lock(&tog_mutex);
++		if (errcode)
++			return got_error_set_errno(errcode,
++			    "pthread_mutex_lock");
+ 		view->search_next(view);
+ 		return NULL;
+ 	}