commit:     bc6949dd559ac386c743e1a4602121e6b8d008ef
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Sun Feb 12 23:45:11 2023 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Sun Feb 12 23:45:11 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc6949dd

dev-vcs/gitqlient: 1.6.1-r1, add fix for Commit Description output

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 .../files/gitqlient-1.6.1_fix_commit_longLog.patch | 34 ++++++++++++++++++++++
 dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild        |  5 +++-
 2 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/dev-vcs/gitqlient/files/gitqlient-1.6.1_fix_commit_longLog.patch 
b/dev-vcs/gitqlient/files/gitqlient-1.6.1_fix_commit_longLog.patch
new file mode 100644
index 000000000..b955ea2dc
--- /dev/null
+++ b/dev-vcs/gitqlient/files/gitqlient-1.6.1_fix_commit_longLog.patch
@@ -0,0 +1,34 @@
+diff -Naur a/src/cache/CommitInfo.cpp b/src/cache/CommitInfo.cpp
+--- a/src/cache/CommitInfo.cpp
++++ b/src/cache/CommitInfo.cpp
+@@ -16,7 +16,7 @@
+    parseDiff(data, 1);
+ }
+ 
+-void CommitInfo::parseDiff(QByteArray &data, int startingField)
++void CommitInfo::parseDiff(QByteArray &data, qsizetype startingField)
+ {
+    if (data.isEmpty())
+       return;
+@@ -39,9 +39,9 @@
+       committer = fields.at(startingField++);
+       author = fields.at(startingField++);
+       dateSinceEpoch = 
std::chrono::seconds(fields.at(startingField++).toInt());
+-      shortLog = fields.at(startingField);
++      shortLog = fields.at(startingField++);
+ 
+-      for (auto i = 6; i < fields.count(); ++i)
++      for (auto i = startingField; i < fields.count(); ++i)
+          longLog += fields.at(i) + '\n';
+ 
+       longLog = longLog.trimmed();
+diff -Naur a/src/cache/CommitInfo.h b/src/cache/CommitInfo.h
+--- a/src/cache/CommitInfo.h
++++ b/src/cache/CommitInfo.h
+@@ -96,5 +96,5 @@
+ 
+    friend class GitCache;
+ 
+-   void parseDiff(QByteArray &data, int startingField);
++   void parseDiff(QByteArray &data, qsizetype startingField);
+ };

diff --git a/dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild 
b/dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild
index 64cdfd1bf..3108b7dc0 100644
--- a/dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild
+++ b/dev-vcs/gitqlient/gitqlient-1.6.1-r1.ebuild
@@ -28,7 +28,10 @@ RDEPEND="
        dev-vcs/git
 "
 
-PATCHES=( "$FILESDIR/${P}_fix_tabs_style.patch" )
+PATCHES=(
+       "$FILESDIR/${P}_fix_tabs_style.patch"
+       "$FILESDIR/${P}_fix_commit_longLog.patch"
+)
 
 src_prepare() {
        default

Reply via email to