git: db6d8562143d - main - deskutils/gitte: Ensure diff output is independent of user settings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Oct 2026 12:44:03 UTC
The branch main has been updated by dch:
URL: https://cgit.FreeBSD.org/ports/commit/?id=db6d8562143d2af430a8eecc94db2e44e90ecab7
commit db6d8562143d2af430a8eecc94db2e44e90ecab7
Author: Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2026-10-09 09:59:58 +0000
Commit: Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2026-10-09 12:43:24 +0000
deskutils/gitte: Ensure diff output is independent of user settings
Sponsored by: SkunkWerks, GmbH
Upstreamed: https://codeberg.org/ckruse/Gitte/pulls/287
---
deskutils/gitte/Makefile | 1 +
deskutils/gitte/files/patch-src_git_diff.rs | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/deskutils/gitte/Makefile b/deskutils/gitte/Makefile
index 3c8ffb5d6dc1..5e527659449d 100644
--- a/deskutils/gitte/Makefile
+++ b/deskutils/gitte/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gitte
DISTVERSION= 0.10.1
+PORTREVISION= 1
CATEGORIES= deskutils gnome
MASTER_SITES= https://codeberg.org/ckruse/Gitte/archive/${DISTVERSION}${EXTRACT_SUFX}?dummy=/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/deskutils/gitte/files/patch-src_git_diff.rs b/deskutils/gitte/files/patch-src_git_diff.rs
new file mode 100644
index 000000000000..232aabb975b6
--- /dev/null
+++ b/deskutils/gitte/files/patch-src_git_diff.rs
@@ -0,0 +1,20 @@
+--- src/git/diff.rs.orig 2026-10-09 07:14:45 UTC
++++ src/git/diff.rs
+@@ -147,6 +147,8 @@ fn git_diff_text(
+ "--no-color",
+ "--no-ext-diff",
+ "--no-textconv",
++ "--src-prefix=a/",
++ "--dst-prefix=b/",
+ "-M",
+ "-C",
+ &context_arg,
+@@ -313,6 +315,8 @@ pub(super) fn file_diffs_via_git(
+ "--no-color",
+ "--no-ext-diff",
+ "--no-textconv",
++ "--src-prefix=a/",
++ "--dst-prefix=b/",
+ "-M",
+ "-C",
+ &context_arg,