|
1 | | -.\" Automatically generated by Pandoc 1.19.2.4 |
| 1 | +.\" Automatically generated by Pandoc 2.5 |
2 | 2 | .\" |
3 | 3 | .TH "MGITSTATUS" "1" "Jul 2019" "" "" |
4 | 4 | .hy |
5 | 5 | .SH NAME |
6 | 6 | .PP |
7 | | -mgitstatus \[en] Show uncommitted, untracked and unpushed changes for |
| 7 | +mgitstatus \- Show uncommitted, untracked and unpushed changes for |
8 | 8 | multiple Git repos. |
9 | 9 | .SH SYNOPSIS |
10 | 10 | .PP |
11 | | -\f[B]mgitstatus\f[] [\f[B]\-\-version\f[]] [\f[B]\-w\f[]] [\f[B]\-e\f[]] |
12 | | -[\f[B]\-f\f[]] [\f[B]\-\-no\-X\f[]] [\f[B]\-d/\-\-depth\f[]=2] |
13 | | -[\f[B]DIR\f[] [\f[B]DIR\f[]]...] |
| 11 | +\f[B]mgitstatus\f[R] [\f[B]\-\-version\f[R]] [\f[B]\-w\f[R]] |
| 12 | +[\f[B]\-e\f[R]] [\f[B]\-f\f[R]] [\f[B]\-\-no\-X\f[R]] |
| 13 | +[\f[B]\-d/\-\-depth\f[R]=2] [\f[B]DIR\f[R] [\f[B]DIR\f[R]]\&...] |
14 | 14 | .SH DESCRIPTION |
15 | 15 | .PP |
16 | | -\f[B]mgitstatus\f[] shows uncommited, untracked and unpushed changes in |
17 | | -multiple Git repositories. |
18 | | -By default, \f[B]mgitstatus\f[] scans two directories deep. |
19 | | -This can be changed with the \f[C]\-d\f[] (\f[C]\-\-depth\f[]) option. |
20 | | -If \f[B]DEPTH\f[] is 0, the scan is infinitely deep. |
| 16 | +\f[B]mgitstatus\f[R] shows uncommitted, untracked and unpushed changes |
| 17 | +in multiple Git repositories. |
| 18 | +By default, \f[B]mgitstatus\f[R] scans two directories deep. |
| 19 | +This can be changed with the \f[C]\-d\f[R] (\f[C]\-\-depth\f[R]) option. |
| 20 | +If \f[B]DEPTH\f[R] is 0, the scan is infinitely deep. |
21 | 21 | .PP |
22 | 22 | mgitstatus shows: |
23 | 23 | .IP \[bu] 2 |
24 | | -\f[B]Uncommitted changes\f[] if there are unstaged or uncommitted |
| 24 | +\f[B]Uncommitted changes\f[R] if there are unstaged or uncommitted |
25 | 25 | changes on the checked out branch. |
26 | 26 | .IP \[bu] 2 |
27 | | -\f[B]Untracked files\f[] if there are untracked files which are not |
| 27 | +\f[B]Untracked files\f[R] if there are untracked files which are not |
28 | 28 | ignored. |
29 | 29 | .IP \[bu] 2 |
30 | | -\f[B]Needs push (BRANCH)\f[] if the branch is tracking a (remote) branch |
31 | | -which is behind. |
| 30 | +\f[B]Needs push (BRANCH)\f[R] if the branch is tracking a (remote) |
| 31 | +branch which is behind. |
32 | 32 | .IP \[bu] 2 |
33 | | -\f[B]Needs upstream (BRANCH)\f[] if a branch does not have a local or |
| 33 | +\f[B]Needs upstream (BRANCH)\f[R] if a branch does not have a local or |
34 | 34 | remote upstream branch configured. |
35 | 35 | Changes in the branch may otherwise never be pushed or merged. |
36 | 36 | .IP \[bu] 2 |
37 | | -\f[B]Needs pull (BRANCH)\f[] if the branch is tracking a (remote) branch |
38 | | -which is ahead. |
| 37 | +\f[B]Needs pull (BRANCH)\f[R] if the branch is tracking a (remote) |
| 38 | +branch which is ahead. |
39 | 39 | This requires that the local git repo already knows about the remote |
40 | | -changes (i.e. |
41 | | -you\[aq]ve done a fetch), or that you specify the \-f option. |
| 40 | +changes (i.e.\ you\[cq]ve done a fetch), or that you specify the \-f |
| 41 | +option. |
42 | 42 | mgitstatus does NOT contact the remote by default. |
43 | 43 | .IP \[bu] 2 |
44 | | -\f[B]X stashes\f[] if there are stashes. |
| 44 | +\f[B]X stashes\f[R] if there are stashes. |
45 | 45 | .PP |
46 | 46 | Since there are a lot of different states a git repository can be in, |
47 | 47 | mgitstatus makes no guarantees that all states are taken into account. |
48 | 48 | .SH OPTIONS |
49 | 49 | .TP |
50 | | -.B \f[B]\-\-version\f[] |
| 50 | +.B \f[B]\-\-version\f[R] |
51 | 51 | Show version |
52 | | -.RS |
53 | | -.RE |
54 | 52 | .TP |
55 | | -.B \f[B]\-w\f[] |
| 53 | +.B \f[B]\-w\f[R] |
56 | 54 | Warn about dirs that are not Git repositories |
57 | | -.RS |
58 | | -.RE |
59 | 55 | .TP |
60 | | -.B \f[B]\-e\f[] |
61 | | -Exclude repos that are \[aq]ok\[aq] |
62 | | -.RS |
63 | | -.RE |
| 56 | +.B \f[B]\-e\f[R] |
| 57 | +Exclude repos that are `ok' |
64 | 58 | .TP |
65 | | -.B \f[B]\-f\f[] |
66 | | -Do a \[aq]git fetch\[aq] on each repo (slow for many repos) |
67 | | -.RS |
68 | | -.RE |
| 59 | +.B \f[B]\-f\f[R] |
| 60 | +Do a `git fetch' on each repo (slow for many repos) |
69 | 61 | .TP |
70 | | -.B \f[B]\-c\f[] |
| 62 | +.B \f[B]\-c\f[R] |
71 | 63 | Force color output (preserve colors when using pipes) |
72 | | -.RS |
73 | | -.RE |
74 | 64 | .TP |
75 | | -.B \f[B]\-d, \-\-depth=2\f[] |
| 65 | +.B \f[B]\-d, \-\-depth=2\f[R] |
76 | 66 | Scan this many directories deep. |
77 | 67 | Default is 2. |
78 | | -If \f[B]0\f[], the scan is infinitely deep |
79 | | -.RS |
80 | | -.RE |
| 68 | +If \f[B]0\f[R], the scan is infinitely deep |
81 | 69 | .PP |
82 | 70 | You can limit output with the following options: |
83 | 71 | .TP |
84 | | -.B \f[B]\-\-no\-push\f[] |
| 72 | +.B \f[B]\-\-no\-push\f[R] |
85 | 73 | Do not show branches that need a push. |
86 | | -.RS |
87 | | -.RE |
88 | 74 | .TP |
89 | | -.B \f[B]\-\-no\-pull\f[] |
| 75 | +.B \f[B]\-\-no\-pull\f[R] |
90 | 76 | Do not show branches that need a pull. |
91 | | -.RS |
92 | | -.RE |
93 | 77 | .TP |
94 | | -.B \f[B]\-\-no\-upstream\f[] |
| 78 | +.B \f[B]\-\-no\-upstream\f[R] |
95 | 79 | Do not show branches that need an upstream. |
96 | | -.RS |
97 | | -.RE |
98 | 80 | .TP |
99 | | -.B \f[B]\-\-no\-uncommited\f[] |
| 81 | +.B \f[B]\-\-no\-uncommitted\f[R] |
100 | 82 | Do not show branches that have unstaged or uncommitted changes. |
101 | | -.RS |
102 | | -.RE |
103 | 83 | .TP |
104 | | -.B \f[B]\-\-no\-untracked\f[] |
| 84 | +.B \f[B]\-\-no\-untracked\f[R] |
105 | 85 | Do not show branches that have untracked files. |
106 | | -.RS |
107 | | -.RE |
108 | 86 | .TP |
109 | | -.B \f[B]\-\-no\-stashes\f[] |
| 87 | +.B \f[B]\-\-no\-stashes\f[R] |
110 | 88 | Do now show stashes |
111 | | -.RS |
112 | | -.RE |
113 | 89 | .SH EXAMPLES |
114 | 90 | .PP |
115 | 91 | The following command scans two directories deep for Git projects and |
116 | 92 | shows their status: |
117 | 93 | .IP |
118 | 94 | .nf |
119 | 95 | \f[C] |
120 | | -$\ mgitstatus\ |
121 | | -\&./fboender/sla:\ ok\ |
122 | | -\&./fboender/multi\-git\-status:\ Needs\ push\ (master)\ Untracked\ files |
123 | | -\&./other/peewee:\ ok\ |
124 | | -\f[] |
| 96 | +$ mgitstatus |
| 97 | +\&./fboender/sla: ok |
| 98 | +\&./fboender/multi\-git\-status: Needs push (master) Untracked files |
| 99 | +\&./other/peewee: ok |
| 100 | +\f[R] |
125 | 101 | .fi |
126 | 102 | .PP |
127 | 103 | To scan deeper (three dirs instead of two) in the current dir: |
128 | 104 | .IP |
129 | 105 | .nf |
130 | 106 | \f[C] |
131 | | -$\ mgitstatus\ \-d\ 3 |
132 | | -\f[] |
| 107 | +$ mgitstatus \-d 3 |
| 108 | +\f[R] |
133 | 109 | .fi |
134 | 110 | .PP |
135 | | -The following command scans three levels deep in \f[C]/opt/deploy/\f[] |
136 | | -and hides repos that are \[aq]ok\[aq]. |
| 111 | +The following command scans three levels deep in \f[C]/opt/deploy/\f[R] |
| 112 | +and hides repos that are `ok'. |
137 | 113 | It does not show stashes: |
138 | 114 | .IP |
139 | 115 | .nf |
140 | 116 | \f[C] |
141 | | -$\ mgitstatus\ \-e\ \-\-no\-stashes\ \-d\ 3\ /opt/deploy |
142 | | -\f[] |
| 117 | +$ mgitstatus \-e \-\-no\-stashes \-d 3 /opt/deploy |
| 118 | +\f[R] |
143 | 119 | .fi |
144 | 120 | .PP |
145 | | -To ignore a repo, set the \f[C]mgitstatus.ignore\f[] git configuration |
146 | | -option for that repo to \f[C]true\f[]. |
| 121 | +To ignore a repo, set the \f[C]mgitstatus.ignore\f[R] git configuration |
| 122 | +option for that repo to \f[C]true\f[R]. |
147 | 123 | E.g.: |
148 | 124 | .IP |
149 | 125 | .nf |
150 | 126 | \f[C] |
151 | | -$\ cd\ stupidrepo |
152 | | -$\ git\ config\ \-\-local\ mgitstatus.ignore\ true |
153 | | -\f[] |
| 127 | +$ cd stupidrepo |
| 128 | +$ git config \-\-local mgitstatus.ignore true |
| 129 | +\f[R] |
154 | 130 | .fi |
155 | 131 | .SH COPYRIGHT |
156 | 132 | .PP |
|
0 commit comments