diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-28 22:18:55 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-28 22:18:55 +1100 |
commit | 6b77e4ee4a7fa05e293afb4fb8a7460df3c2817a (patch) | |
tree | 8c7b47568d648ec760c21fad50d94bb820b855b9 | |
parent | e5534f060d22f82838c57c501a5d4e02aa696f01 (diff) |
fix comment
-rw-r--r-- | pkg/commands/branch_list_builder.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |