From 6b77e4ee4a7fa05e293afb4fb8a7460df3c2817a Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 28 Jan 2020 22:18:55 +1100 Subject: fix comment --- pkg/commands/branch_list_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/commands/branch_list_builder.go b/pkg/commands/branch_list_builder.go index 0ee0c4d11..cb4920585 100644 --- a/pkg/commands/branch_list_builder.go +++ b/pkg/commands/branch_list_builder.go @@ -146,7 +146,7 @@ func uniqueByName(branches []*Branch) []*Branch { // A line will have the form '10 days ago master' so we need to strip out the // useful information from that into timeNumber, timeUnit, and branchName func branchInfoFromLine(line string) (string, string) { - // example line: HEAD@{2020-01-28 20:55:06 +1100}|checkout: moving from pulling-from-forks to tim77-patch-1 + // example line: HEAD@{12 minutes ago}|checkout: moving from pulling-from-forks to tim77-patch-1 r := regexp.MustCompile(`HEAD\@\{([^\s]+) ([^\s]+) ago\}\|.*?([^\s]*)$`) matches := r.FindStringSubmatch(strings.TrimSpace(line)) if len(matches) == 0 { -- cgit v1.2.3