Lines Matching full:local
17 local url="$(prurl "$@")"
18 local num=$(basename $url)
19 local prpath="${url#git@github.com:}"
20 local repo=${prpath%/pull/$num}
21 local prweb="https://github.com/$prpath"
22 local root="$(prroot "$url")"
23 local api="https://api.github.com/repos/${repo}/pulls/${num}"
24 local user=$(curl -s $api | json user.login)
25 local ref="$(prref "$url" "$root")"
26 local curhead="$(git show --no-patch --pretty=%H HEAD)"
27 local curbranch="$(git rev-parse --abbrev-ref HEAD)"
28 local cleanlines
74 local curbranch="$1"
75 local ref=$(cat .git/HEAD)
76 local prnum
87 local me=$(git config github.user || git config user.name)
95 local url="$(prurl "$prnum")"
96 local num=$prnum
97 local prpath="${url#git@github.com:}"
98 local repo=${prpath%/pull/$num}
99 local prweb="https://github.com/$prpath"
100 local root="$(prroot "$url")"
102 local api="https://api.github.com/repos/${repo}/pulls/${num}"
103 local user=$(curl -s $api | json user.login)
105 local lastmsg="$(git log -1 --pretty=%B)"
106 local newmsg="${lastmsg}
121 local url="$1"
126 local us="$2"
130 local num="$url"
131 local o="$(git config --get remote.${us}.url)"
143 local p='^https:\/\/github.com\/[^\/]+\/[^\/]+\/pull\/[0-9]+$'
157 local url="$1"
162 local url="$1"
163 local root="$2"