dev-vcs/lazygit: add new package

Add ebuild for lazygit-0.19:
a simple terminal UI for git commands, written in Go with the gocui library.

The patch fix crash if git config use 'showSignature = true' option.

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2020-04-08 03:21:17 +03:00
parent ca1c0e5881
commit 80233e4bed
4 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
From 7b7f7f0696d94c01852290fa3552caffa0b2af7b Mon Sep 17 00:00:00 2001
From: Glenn Vriesman <glenn.vriesman@gmail.com>
Date: Mon, 6 Apr 2020 19:26:12 +0200
Subject: [PATCH] fix: fixed gpg breaking terminal
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
---
pkg/commands/commit_list_builder.go | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/github.com/jesseduffield/lazygit/pkg/commands/commit_list_builder.go b/pkg/commands/commit_list_builder.go
index 1204b488..f4bbc9dd 100644
--- a/src/github.com/jesseduffield/lazygit/pkg/commands/commit_list_builder.go
+++ b/src/github.com/jesseduffield/lazygit/pkg/commands/commit_list_builder.go
@@ -109,11 +109,12 @@ func (c *CommitListBuilder) GetCommits(options GetCommitsOptions) ([]*Commit, er
cmd := c.getLogCmd(options)
err = RunLineOutputCmd(cmd, func(line string) (bool, error) {
- commit := c.extractCommitFromLine(line)
- _, unpushed := unpushedCommits[commit.ShortSha()]
- commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed]
- commits = append(commits, commit)
-
+ if strings.Split(line, " ")[0] != "gpg:" {
+ commit := c.extractCommitFromLine(line)
+ _, unpushed := unpushedCommits[commit.ShortSha()]
+ commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed]
+ commits = append(commits, commit)
+ }
return false, nil
})
if err != nil {