mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-03 12:36:57 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9fe0b8000 | ||
|
|
5af7b0235e | ||
|
|
bf946200e9 |
@@ -298,7 +298,7 @@ func (c *CommitListBuilder) getMergeBase() (string, error) {
|
||||
// to the remote branch of the current branch, a map is returned to ease look up
|
||||
func (c *CommitListBuilder) getUnpushedCommits() map[string]bool {
|
||||
pushables := map[string]bool{}
|
||||
o, err := c.OSCommand.RunCommandWithOutput("git rev-list @{u}..HEAD --abbrev-commit")
|
||||
o, err := c.OSCommand.RunCommandWithOutput("git rev-list @{u}..HEAD --abbrev-commit --abbrev=8")
|
||||
if err != nil {
|
||||
return pushables
|
||||
}
|
||||
|
||||
+1
-1
@@ -1115,7 +1115,7 @@ func (c *GitCommand) GetReflogCommits() ([]*Commit, error) {
|
||||
re := regexp.MustCompile(`(\w+).*HEAD@\{\d+\}: (.*)`)
|
||||
for i, line := range lines {
|
||||
match := re.FindStringSubmatch(line)
|
||||
if len(match) == 1 {
|
||||
if len(match) <= 1 {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user