File tree Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Expand file tree Collapse file tree 2 files changed +73
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,48 @@ $ cd stupidrepo
137137$ git config \-\- local mgitstatus.ignore true
138138\f[ R ]
139139.fi
140+ .PP
141+ Sort output by repo name while retaining colors:
142+ .IP
143+ .nf
144+ \f[ C ]
145+ $ mgitstatus \- c | sort
146+ \& ./ansible: ok
147+ \& ./ansible\- cmdb: Needs push (master) Uncommitted changes Untracked files
148+ \& ./davis: ok
149+ \& ./espy: Uncommitted changes Untracked files
150+ \& ./garner: Untracked files
151+ \& ./garner\- chains: ok
152+ \& ./mdpreview: ok
153+ \f[ R ]
154+ .fi
155+ .PP
156+ Sort output by repo status while retaining colors:
157+ .IP
158+ .nf
159+ \f[ C ]
160+ $ mgitstatus \- c \-\- flatten \- e | sort \- k2
161+ \& ./fboender/ansible\- cmdb: Uncommitted changes
162+ \& ./fboender/espy: Uncommitted changes
163+ \& ./fboender/multi\- git\- status: Uncommitted changes
164+ \& ./fboender/ansible\- cmdb: Needs push (master)
165+ \& ./fboender/ansible\- cmdb: Untracked files
166+ \& ./fboender/espy: Untracked files
167+ \& ./fboender/garner: Untracked files
168+ \& ./fboender/multi\- git\- status: Untracked files
169+ \f[ R ]
170+ .fi
171+ .PP
172+ Force color output and flatten the output so we can grep for things:
173+ .IP
174+ .nf
175+ \f[ C ]
176+ $ mgitstatus \-\- flatten \- c | grep Uncommitted
177+ \& ./fboender/multi\- git\- status: Uncommitted changes
178+ \& ./fboender/ansible\- cmdb: Uncommitted changes
179+ \& ./fboender/espy: Uncommitted changes
180+ \f[ R ]
181+ .fi
140182.SH COPYRIGHT
141183.PP
142184Copyright 2016\- 2020, Ferry Boender.
Original file line number Diff line number Diff line change @@ -113,6 +113,37 @@ that repo to `true`. E.g.:
113113 $ cd stupidrepo
114114 $ git config --local mgitstatus.ignore true
115115
116+ Sort output by repo name while retaining colors:
117+
118+ $ mgitstatus -c | sort
119+ ./ansible: ok
120+ ./ansible-cmdb: Needs push (master) Uncommitted changes Untracked files
121+ ./davis: ok
122+ ./espy: Uncommitted changes Untracked files
123+ ./garner: Untracked files
124+ ./garner-chains: ok
125+ ./mdpreview: ok
126+
127+ Sort output by repo status while retaining colors:
128+
129+ $ mgitstatus -c --flatten -e | sort -k2
130+ ./fboender/ansible-cmdb: Uncommitted changes
131+ ./fboender/espy: Uncommitted changes
132+ ./fboender/multi-git-status: Uncommitted changes
133+ ./fboender/ansible-cmdb: Needs push (master)
134+ ./fboender/ansible-cmdb: Untracked files
135+ ./fboender/espy: Untracked files
136+ ./fboender/garner: Untracked files
137+ ./fboender/multi-git-status: Untracked files
138+
139+ Force color output and flatten the output so we can grep for things:
140+
141+ $ mgitstatus --flatten -c | grep Uncommitted
142+ ./fboender/multi-git-status: Uncommitted changes
143+ ./fboender/ansible-cmdb: Uncommitted changes
144+ ./fboender/espy: Uncommitted changes
145+
146+
116147# COPYRIGHT
117148
118149Copyright 2016-2020, Ferry Boender.
You can’t perform that action at this time.
0 commit comments