mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-31 14:17:45 +00:00
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.
This commit is contained in:
parent
3ad271f838
commit
1930c7b47f
1 changed files with 0 additions and 1 deletions
|
@ -91,7 +91,6 @@ module git-completion-utils {
|
||||||
|
|
||||||
# Get local branches, remote branches which can be passed to `git merge`
|
# Get local branches, remote branches which can be passed to `git merge`
|
||||||
export def get-mergable-sources []: nothing -> list<record<value: string, description: string>> {
|
export def get-mergable-sources []: nothing -> list<record<value: string, description: string>> {
|
||||||
# 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 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'
|
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
|
$local | append $remote
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue