Kaydet (Commit) 4c475bc6 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

./g: indent & de-tabbify to make code readable

Change-Id: Ica2a0dd281f77bfab223fa1526ba0720c9c280f1
Reviewed-on: https://gerrit.libreoffice.org/56821Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst cb875f3e
...@@ -31,9 +31,9 @@ usage() ...@@ -31,9 +31,9 @@ usage()
refresh_submodule_hooks() refresh_submodule_hooks()
{ {
local repo=$1 local repo=$1
local hook local hook
local hook_name local hook_name
if [ -d "${repo?}"/.git ] ; then if [ -d "${repo?}"/.git ] ; then
# use core's hook by default # use core's hook by default
...@@ -74,9 +74,9 @@ local hook_name ...@@ -74,9 +74,9 @@ local hook_name
refresh_all_hooks() refresh_all_hooks()
{ {
local repo local repo
local hook_name local hook_name
local hook local hook
pushd "${COREDIR?}" > /dev/null pushd "${COREDIR?}" > /dev/null
for hook_name in "${COREDIR?}/.git-hooks"/* ; do for hook_name in "${COREDIR?}/.git-hooks"/* ; do
...@@ -96,7 +96,7 @@ local hook ...@@ -96,7 +96,7 @@ local hook
set_push_url() set_push_url()
{ {
local repo local repo
repo="$1" repo="$1"
if [ -n "$repo" ] ; then if [ -n "$repo" ] ; then
...@@ -125,8 +125,8 @@ set_push_urls() ...@@ -125,8 +125,8 @@ set_push_urls()
get_active_submodules() get_active_submodules()
{ {
SUBMODULES_ACTIVE="" SUBMODULES_ACTIVE=""
local repo local repo
for repo in ${SUBMODULES_ALL?} ; do for repo in ${SUBMODULES_ALL?} ; do
if [ -d "${repo?}"/.git ] || [ -f "${repo?}"/.git ] ; then if [ -d "${repo?}"/.git ] || [ -f "${repo?}"/.git ] ; then
...@@ -160,8 +160,8 @@ get_git_reference() ...@@ -160,8 +160,8 @@ get_git_reference()
do_shortcut_update() do_shortcut_update()
{ {
local module local module
local repo local repo
for module in $SUBMODULES_CONFIGURED ; do for module in $SUBMODULES_CONFIGURED ; do
if [ ! -d "${module?}"/.git ] ; then if [ ! -d "${module?}"/.git ] ; then
...@@ -193,10 +193,10 @@ do_git_cmd() ...@@ -193,10 +193,10 @@ do_git_cmd()
do_checkout() do_checkout()
{ {
local cmd local cmd
local create_branch="0" local create_branch="0"
local branch local branch
local module local module
git checkout "$@" || return $? git checkout "$@" || return $?
for cmd in "$@" ; do for cmd in "$@" ; do
...@@ -247,8 +247,8 @@ do_reset() ...@@ -247,8 +247,8 @@ do_reset()
do_init_modules() do_init_modules()
{ {
local module local module
local configured local configured
do_shortcut_update do_shortcut_update
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment