-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcoverbox.sh
73 lines (60 loc) · 1.04 KB
/
coverbox.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
source ~/.my_git/coverbox_functions.sh
case "$1" in
"remote_branch")
case "$2" in
"add")
add_branch $3
;;
"del")
del_branch $3
;;
*)
echo "usage: $0 $1 [add|del] <branchname>"
echo "Adds or removes configuration to track a local branch to the remote with the same name"
esac
;;
"remote_track")
case "$2" in
"add")
add_track $3
;;
"del")
del_track $3
;;
*)
echo "usage: $0 $1 [add|del] <branchname>"
echo "Adds a remote branch to you tracking branches and fetches it."
esac
;;
"local_change")
case "$2" in
"publish")
publish $3
;;
"receive")
receive $3
;;
"rid")
rid $3
;;
*)
echo "usage: $0 $1 [add|del] <branchname>"
echo "Adds a remote branch to you tracking branches and fetches it."
;;
esac
;;
"submodule")
case "$2" in
"pull")
pull_with_submodules `echo $* | cut -d \ -f 3-`
;;
"status")
submodule_status
;;
esac
;;
"root")
cd `git_root`
;;
esac