File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# shellcheck disable=SC2155 # Declare and assign separately to avoid masking return values.
4
- # shellcheck disable=SC1091 # Not following: ./fzf_headers/__select_local_branch_header was not specified as input (see shellcheck -x)
4
+ # shellcheck disable=SC1091 # Not following: ./fzf_headers/__select_branch_header was not specified as input (see shellcheck -x)
5
5
6
- source " ${__CUSTOM_GIT_UTIL} " /fzf_headers/__select_local_branch_header
6
+ source " ${__CUSTOM_GIT_UTIL} " /fzf_headers/__select_branch_header
7
7
8
8
# Usage: __select_local_branch "gswitch" "select local branch to switch to" "exit"
9
9
function __select_local_branch() {
10
10
11
11
local cmd=" ${1} "
12
12
local cmdMsg=" ${2} "
13
13
local escAction=" ${3} "
14
- local HEADER=" $( __select_local_branch_header " ${cmd} " " ${cmdMsg} " " ${escAction} " ) "
14
+ local HEADER=" $( __select_branch_header " ${cmd} " " ${cmdMsg} " " ${escAction} " ) "
15
15
local branchName=" $( git branch --sort=-committerdate | \
16
16
fzf --height=50%\
17
17
--header " ${HEADER} " | \
Original file line number Diff line number Diff line change 6
6
7
7
source " ${__CUSTOM_CONSOLE_UTIL} " /__common # for colors
8
8
9
- # Usage: __select_local_branch_header "gswitch" "select local branch" "exit"
10
- function __select_local_branch_header () {
9
+ # Usage: __select_branch_header "gswitch" "select local branch" "exit"
10
+ function __select_branch_header () {
11
11
12
12
local cmd=" ${1} "
13
13
local cmdMsg=" ${2} "
You can’t perform that action at this time.
0 commit comments