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()
refresh_submodule_hooks()
{
local repo=$1
local hook
local hook_name
local repo=$1
local hook
local hook_name
if [ -d "${repo?}"/.git ] ; then
# use core's hook by default
......@@ -74,9 +74,9 @@ local hook_name
refresh_all_hooks()
{
local repo
local hook_name
local hook
local repo
local hook_name
local hook
pushd "${COREDIR?}" > /dev/null
for hook_name in "${COREDIR?}/.git-hooks"/* ; do
......@@ -96,7 +96,7 @@ local hook
set_push_url()
{
local repo
local repo
repo="$1"
if [ -n "$repo" ] ; then
......@@ -125,8 +125,8 @@ set_push_urls()
get_active_submodules()
{
SUBMODULES_ACTIVE=""
local repo
SUBMODULES_ACTIVE=""
local repo
for repo in ${SUBMODULES_ALL?} ; do
if [ -d "${repo?}"/.git ] || [ -f "${repo?}"/.git ] ; then
......@@ -160,8 +160,8 @@ get_git_reference()
do_shortcut_update()
{
local module
local repo
local module
local repo
for module in $SUBMODULES_CONFIGURED ; do
if [ ! -d "${module?}"/.git ] ; then
......@@ -193,10 +193,10 @@ do_git_cmd()
do_checkout()
{
local cmd
local create_branch="0"
local branch
local module
local cmd
local create_branch="0"
local branch
local module
git checkout "$@" || return $?
for cmd in "$@" ; do
......@@ -247,8 +247,8 @@ do_reset()
do_init_modules()
{
local module
local configured
local module
local configured
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