Skip to content

Commit 1930c7b

Browse files
authored
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.
1 parent 3ad271f commit 1930c7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

custom-completions/git/git-completions.nu

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ module git-completion-utils {
9191

9292
# Get local branches, remote branches which can be passed to `git merge`
9393
export def get-mergable-sources []: nothing -> list<record<value: string, description: string>> {
94-
# expensive: (^git show --no-patch --format=%s $x.obj)
9594
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'
9695
let remote = get-all-git-remote-refs | each {|x| {value: $x.ref description: $'Branch, Remote, ($x.obj) ($x.subject)'} } | insert style 'blue_italic'
9796
$local | append $remote

0 commit comments

Comments
 (0)