Skip to content

Commit 92ad43e

Browse files
committed
toolsets/repos: gt-* use ham-gt ;
1 parent bb4c674 commit 92ad43e

11 files changed

+22
-44
lines changed

toolsets/repos/gt-co-branch

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} (nostash)"
86
echo ""
9-
echo " 'gt branch checkout' with auto restack & auto stashing."
7+
echo " 'ham-gt branch checkout' with auto restack & auto stashing."
108
exit 1
119
}
1210

@@ -25,8 +23,8 @@ fi
2523
(set -x ;
2624
# Ignore error since we want to reapply the stash if its fails or we cancel it
2725
set +e ;
28-
gt branch checkout $1 ;
29-
gt upstack restack)
26+
ham-gt branch checkout $1 ;
27+
ham-gt upstack restack)
3028

3129
if [ $STASH == 1 ]; then
3230
(set -x ;

toolsets/repos/gt-edit-stack

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} (nostash)"
86
echo ""
9-
echo " 'gt downstack edit' with auto stashing and restacking."
7+
echo " 'ham-gt downstack edit' with auto stashing and restacking."
108
exit 1
119
}
1210

@@ -23,8 +21,8 @@ if [ $STASH == 1 ]; then
2321
fi
2422

2523
(set -x;
26-
gt downstack edit $@ ;
27-
gt stack restack)
24+
ham-gt downstack edit $@ ;
25+
ham-gt stack restack)
2826

2927
if [ $STASH == 1 ]; then
3028
(set -x ;

toolsets/repos/gt-get

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} (nostash)"
86
echo ""
9-
echo " 'gt downstack get' with auto stashing and restacking."
7+
echo " 'ham-gt downstack get' with auto stashing and restacking."
108
exit 1
119
}
1210

@@ -23,8 +21,8 @@ if [ $STASH == 1 ]; then
2321
fi
2422

2523
(set -x;
26-
gt dsg $@ ;
27-
gt stack restack)
24+
ham-gt dsg $@ ;
25+
ham-gt stack restack)
2826

2927
if [ $STASH == 1 ]; then
3028
(set -x ;

toolsets/repos/gt-ls

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#!/bin/bash -e
2-
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
5-
62
usage() {
73
echo "usage: ${0##*/}"
84
echo ""
9-
echo " 'gt ls' list the current branches and display their stack."
5+
echo " 'ham-gt ls' list the current branches and display their stack."
106
exit 1
117
}
128

139
(set -x;
14-
gt ls)
10+
ham-gt ls)

toolsets/repos/gt-merge-current-branch

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} BRANCH_NAME(usually main or master) ORIGIN(default:origin)"

toolsets/repos/gt-new-branch

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} BRANCH_NAME"
@@ -17,4 +15,4 @@ fi
1715

1816
(set -x ;
1917
git-branch "$1" ;
20-
gt branch track "$1")
18+
ham-gt branch track "$1")

toolsets/repos/gt-restack

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
usage() {
33
echo "usage: ${0##*/} (nostash)"
44
echo ""
5-
echo " 'gt stack restack' with auto stashing."
5+
echo " 'ham-gt stack restack' with auto stashing."
66
exit 1
77
}
88

@@ -19,7 +19,7 @@ if [ $STASH == 1 ]; then
1919
fi
2020

2121
(set -x;
22-
gt stack restack)
22+
ham-gt stack restack)
2323

2424
if [ $STASH == 1 ]; then
2525
(set -x ;

toolsets/repos/gt-submit

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/}"
86
echo ""
9-
echo " 'gt submit stack'."
7+
echo " 'ham-gt submit stack'."
108
exit 1
119
}
1210

1311
(set -x;
1412
gt-restack ;
15-
gt stack submit)
13+
ham-gt stack submit)

toolsets/repos/gt-sync

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} (nostash)"
86
echo ""
9-
echo " 'gt repo sync --restack' with auto stashing."
7+
echo " 'ham-gt repo sync --restack' with auto stashing."
108
exit 1
119
}
1210

@@ -22,7 +20,7 @@ if [ $STASH == 1 ]; then
2220
git-stash push gt-sync)
2321
fi
2422

25-
(set -x; gt repo sync --restack --show-delete-progress --delete --force)
23+
(set -x; ham-gt repo sync --restack --show-delete-progress --delete --force)
2624

2725
if [ $STASH == 1 ]; then
2826
(set -x ;

toolsets/repos/gt-track-branch

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} MESSAGE"
86
echo ""
9-
echo " 'gt branch track'"
7+
echo " 'ham-gt branch track'"
108
exit 1
119
}
1210

1311
(set -x ;
14-
gt branch track "$@")
12+
ham-gt branch track "$@")

toolsets/repos/gt-upstack-onto

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/bin/bash -e
22
. "$HAM_HOME/bin/ham-bash-setenv.sh"
3-
export HAM_NO_VER_CHECK=1
4-
toolset_import_once nodejs > /dev/null
53

64
usage() {
75
echo "usage: ${0##*/} BRANCH_NAME"
86
echo ""
9-
echo " 'gt upstack onto' Rebase the current branch onto the latest commit of the"
7+
echo " 'ham-gt upstack onto' Rebase the current branch onto the latest commit of the"
108
echo " target branch and restack all of its descendants. If no branch is passed in,"
119
echo " opens an interactive selector."
1210
exit 1
@@ -18,4 +16,4 @@ if [ -z "$1" ]; then
1816
fi
1917

2018
(set -x ;
21-
gt upstack onto "$@")
19+
ham-gt upstack onto "$@")

0 commit comments

Comments
 (0)