mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-08 06:32:00 +08:00
Reformat fish scripts with escaped newline changes to fish_indent
This commit is contained in:
parent
7891973c9c
commit
aa629c5aca
|
@ -69,8 +69,7 @@ function __fish_git_unique_remote_branches
|
||||||
# `git checkout frobulate` is equivalent to `git checkout -b frobulate --track alice/frobulate`.
|
# `git checkout frobulate` is equivalent to `git checkout -b frobulate --track alice/frobulate`.
|
||||||
__fish_git for-each-ref --format="%(refname:strip=3)" \
|
__fish_git for-each-ref --format="%(refname:strip=3)" \
|
||||||
--sort="refname:strip=3" \
|
--sort="refname:strip=3" \
|
||||||
"refs/remotes/*/$match*" "refs/remotes/*/*/**" 2>/dev/null | \
|
"refs/remotes/*/$match*" "refs/remotes/*/*/**" 2>/dev/null | uniq -u
|
||||||
uniq -u
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fish_git_tags
|
function __fish_git_tags
|
||||||
|
@ -1070,8 +1069,7 @@ complete -c git -n '__fish_git_using_command diff; and __fish_contains_opt cache
|
||||||
### Function to list available tools for git difftool and mergetool
|
### Function to list available tools for git difftool and mergetool
|
||||||
|
|
||||||
function __fish_git_diffmerge_tools -a cmd
|
function __fish_git_diffmerge_tools -a cmd
|
||||||
git $cmd --tool-help | \
|
git $cmd --tool-help | while read -l line
|
||||||
while read -l line
|
|
||||||
string match -q 'The following tools are valid, but not currently available:' -- $line
|
string match -q 'The following tools are valid, but not currently available:' -- $line
|
||||||
and break
|
and break
|
||||||
string replace -f -r '^\t\t(\w+).*$' '$1' -- $line
|
string replace -f -r '^\t\t(\w+).*$' '$1' -- $line
|
||||||
|
|
|
@ -15,7 +15,6 @@ d echo true
|
||||||
\U00000066\
|
\U00000066\
|
||||||
true
|
true
|
||||||
echo if true
|
echo if true
|
||||||
\
|
|
||||||
\145n\
|
\145n\
|
||||||
d\
|
d\
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user