From 1930c7b47fd8b4ac5549297286f222baccf8639f Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Sat, 19 Apr 2025 15:42:48 +0200 Subject: [PATCH] Drop draft note (#1088) This comment was a WIP draft note. The separate `git show` command call is not necessary because `get-all-git-local-refs` through `for-each-ref` already includes the commit title. So the comment can be dropped without further consideration / is already resolved. --- custom-completions/git/git-completions.nu | 1 - 1 file changed, 1 deletion(-) diff --git a/custom-completions/git/git-completions.nu b/custom-completions/git/git-completions.nu index 4c34d93..8f1099e 100644 --- a/custom-completions/git/git-completions.nu +++ b/custom-completions/git/git-completions.nu @@ -91,7 +91,6 @@ module git-completion-utils { # Get local branches, remote branches which can be passed to `git merge` export def get-mergable-sources []: nothing -> list> { - # expensive: (^git show --no-patch --format=%s $x.obj) let local = get-all-git-local-refs | each {|x| {value: $x.ref description: $'Branch, Local, ($x.obj) ($x.subject), (if ($x.upstream | is-not-empty) { $x.upstream } else { "no upstream" } )'} } | insert style 'light_blue' let remote = get-all-git-remote-refs | each {|x| {value: $x.ref description: $'Branch, Remote, ($x.obj) ($x.subject)'} } | insert style 'blue_italic' $local | append $remote