File tree 11 files changed +22
-44
lines changed
11 files changed +22
-44
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } (nostash)"
8
6
echo " "
9
- echo " 'gt branch checkout' with auto restack & auto stashing."
7
+ echo " 'ham- gt branch checkout' with auto restack & auto stashing."
10
8
exit 1
11
9
}
12
10
25
23
(set -x ;
26
24
# Ignore error since we want to reapply the stash if its fails or we cancel it
27
25
set +e ;
28
- gt branch checkout $1 ;
29
- gt upstack restack)
26
+ ham- gt branch checkout $1 ;
27
+ ham- gt upstack restack)
30
28
31
29
if [ $STASH == 1 ]; then
32
30
(set -x ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } (nostash)"
8
6
echo " "
9
- echo " 'gt downstack edit' with auto stashing and restacking."
7
+ echo " 'ham- gt downstack edit' with auto stashing and restacking."
10
8
exit 1
11
9
}
12
10
@@ -23,8 +21,8 @@ if [ $STASH == 1 ]; then
23
21
fi
24
22
25
23
(set -x;
26
- gt downstack edit $@ ;
27
- gt stack restack)
24
+ ham- gt downstack edit $@ ;
25
+ ham- gt stack restack)
28
26
29
27
if [ $STASH == 1 ]; then
30
28
(set -x ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } (nostash)"
8
6
echo " "
9
- echo " 'gt downstack get' with auto stashing and restacking."
7
+ echo " 'ham- gt downstack get' with auto stashing and restacking."
10
8
exit 1
11
9
}
12
10
@@ -23,8 +21,8 @@ if [ $STASH == 1 ]; then
23
21
fi
24
22
25
23
(set -x;
26
- gt dsg $@ ;
27
- gt stack restack)
24
+ ham- gt dsg $@ ;
25
+ ham- gt stack restack)
28
26
29
27
if [ $STASH == 1 ]; then
30
28
(set -x ;
Original file line number Diff line number Diff line change 1
1
#! /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
-
6
2
usage () {
7
3
echo " usage: ${0##*/ } "
8
4
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."
10
6
exit 1
11
7
}
12
8
13
9
(set -x;
14
- gt ls)
10
+ ham- gt ls)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } BRANCH_NAME(usually main or master) ORIGIN(default:origin)"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } BRANCH_NAME"
17
15
18
16
(set -x ;
19
17
git-branch " $1 " ;
20
- gt branch track " $1 " )
18
+ ham- gt branch track " $1 " )
Original file line number Diff line number Diff line change 2
2
usage () {
3
3
echo " usage: ${0##*/ } (nostash)"
4
4
echo " "
5
- echo " 'gt stack restack' with auto stashing."
5
+ echo " 'ham- gt stack restack' with auto stashing."
6
6
exit 1
7
7
}
8
8
@@ -19,7 +19,7 @@ if [ $STASH == 1 ]; then
19
19
fi
20
20
21
21
(set -x;
22
- gt stack restack)
22
+ ham- gt stack restack)
23
23
24
24
if [ $STASH == 1 ]; then
25
25
(set -x ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } "
8
6
echo " "
9
- echo " 'gt submit stack'."
7
+ echo " 'ham- gt submit stack'."
10
8
exit 1
11
9
}
12
10
13
11
(set -x;
14
12
gt-restack ;
15
- gt stack submit)
13
+ ham- gt stack submit)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } (nostash)"
8
6
echo " "
9
- echo " 'gt repo sync --restack' with auto stashing."
7
+ echo " 'ham- gt repo sync --restack' with auto stashing."
10
8
exit 1
11
9
}
12
10
@@ -22,7 +20,7 @@ if [ $STASH == 1 ]; then
22
20
git-stash push gt-sync)
23
21
fi
24
22
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)
26
24
27
25
if [ $STASH == 1 ]; then
28
26
(set -x ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } MESSAGE"
8
6
echo " "
9
- echo " 'gt branch track'"
7
+ echo " 'ham- gt branch track'"
10
8
exit 1
11
9
}
12
10
13
11
(set -x ;
14
- gt branch track " $@ " )
12
+ ham- gt branch track " $@ " )
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
. " $HAM_HOME /bin/ham-bash-setenv.sh"
3
- export HAM_NO_VER_CHECK=1
4
- toolset_import_once nodejs > /dev/null
5
3
6
4
usage () {
7
5
echo " usage: ${0##*/ } BRANCH_NAME"
8
6
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"
10
8
echo " target branch and restack all of its descendants. If no branch is passed in,"
11
9
echo " opens an interactive selector."
12
10
exit 1
@@ -18,4 +16,4 @@ if [ -z "$1" ]; then
18
16
fi
19
17
20
18
(set -x ;
21
- gt upstack onto " $@ " )
19
+ ham- gt upstack onto " $@ " )
You can’t perform that action at this time.
0 commit comments