Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a31714fb
Kaydet (Commit)
a31714fb
authored
Eki 02, 2012
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add tag support to ./g, try to optimize pre->post submerge situation
Change-Id: I052817865da6df193c0451eccc3b8b6f507845a3
üst
2c5cdc4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
g
g
+34
-2
No files found.
g
Dosyayı görüntüle @
a31714fb
...
...
@@ -125,6 +125,31 @@ get_configured_submodules()
fi
}
do_shortcut_update
()
{
local
module
local
repo
for
module
in
$SUBMODULES_CONFIGURED
;
do
if
[
!
-d
${
module
?
}
/.git
]
;
then
case
"
${
module
?
}
"
in
helcontent2
)
if
[
-d
clone/help/.git
]
;
then
repo
=
"clone/help/.git"
fi
;;
*
)
if
[
-d
clone/
${
module
?
}
/.git
]
;
then
repo
=
"clone/
${
module
?
}
/.git"
fi
;;
esac
if
[
-n
"
$repo
"
]
;
then
cp
-r
"
${
repo
?
}
"
"
${
module
?
}
/."
fi
done
}
do_git_cmd
()
{
echo
"cmd:
$@
"
...
...
@@ -147,11 +172,13 @@ local module
create_branch
=
1
elif
[
"
$create_branch
"
=
"1"
]
;
then
branch
=
"
$arg
"
create_branch
=
0
fi
done
if
[
-f
.gitmodules
]
;
then
git submodule update
if
[
-n
"
$branch
"
]
;
then
git submodules foreach git
branch
${
branch
}
HEAD
||
return
$?
git submodules foreach git
checkout
-b
${
branch
}
HEAD
||
return
$?
fi
else
# now that is the nasty case we moved prior to submodules
...
...
@@ -189,6 +216,8 @@ do_init_modules()
local
module
local
configured
do_shortcut_update
for
module
in
$SUBMODULES_CONFIGURED
;
do
configured
=
$(
git config
--local
--get
submodule.
${
module
}
.url
)
if
[
-z
"
$configured
"
]
;
then
...
...
@@ -265,7 +294,7 @@ case "$COMMAND" in
do_git_cmd
${
COMMAND
}
"
$@
"
;;
checkout
)
do_checkout
"
$@
"
&&
git submodule foreach git checkout
"
$@
"
do_checkout
"
$@
"
;;
clone
)
do_init_modules
&&
git submodule update
&&
refresh_all_hooks
...
...
@@ -290,6 +319,9 @@ case "$COMMAND" in
reset
)
do_reset
;;
tag
)
do_git_cmd
${
COMMAND
}
"
$@
"
;;
*
)
echo
"./g does not support command:
$COMMAND
"
1>&2
exit
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment