mirror of
https://github.com/git/git.git
synced 2025-12-23 12:14:22 +01:00
web--browse: coding style
Retab and deindent choices in case statements. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
7e4eb210bd
commit
a180055a47
@@ -139,19 +139,19 @@ else
|
||||
fi
|
||||
|
||||
case "$browser" in
|
||||
firefox|iceweasel)
|
||||
firefox|iceweasel)
|
||||
# Check version because firefox < 2.0 does not support "-new-tab".
|
||||
vers=$(expr "$($browser_path -version)" : '.* \([0-9][0-9]*\)\..*')
|
||||
NEWTAB='-new-tab'
|
||||
test "$vers" -lt 2 && NEWTAB=''
|
||||
"$browser_path" $NEWTAB "$@" &
|
||||
;;
|
||||
google-chrome|chrome|chromium)
|
||||
google-chrome|chrome|chromium)
|
||||
# Actual command for chromium is chromium-browser.
|
||||
# No need to specify newTab. It's default in chromium
|
||||
eval "$browser_path" "$@" &
|
||||
;;
|
||||
konqueror)
|
||||
konqueror)
|
||||
case "$(basename "$browser_path")" in
|
||||
konqueror)
|
||||
# It's simpler to use kfmclient to open a new tab in konqueror.
|
||||
@@ -167,16 +167,16 @@ case "$browser" in
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
w3m|links|lynx|open)
|
||||
w3m|links|lynx|open)
|
||||
eval "$browser_path" "$@"
|
||||
;;
|
||||
start)
|
||||
start)
|
||||
exec "$browser_path" '"web-browse"' "$@"
|
||||
;;
|
||||
dillo)
|
||||
dillo)
|
||||
"$browser_path" "$@" &
|
||||
;;
|
||||
*)
|
||||
*)
|
||||
if test -n "$browser_cmd"; then
|
||||
( eval $browser_cmd "$@" )
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user