-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli.js
executable file
·49 lines (39 loc) · 1.71 KB
/
cli.js
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
#!/usr/bin/env node
'use strict';
var meow = require('meow');
var gitsmv = require('./');
var cli = meow(`
Usage,
$ gitsmv [input],
Columns,
1. Repository path base name
2. Active branch
3. Number of commits in HEAD that are missing (not yet pushed) in remote
4. Number of commits in remote branch missing in HEAD
5. Is working directory clean (ignoring untracked files)
.. Custom tracked branches goes here. See --track
6. Last commit hash
7. Last commit date
8. Last commit author
9. Last commit message
Options,
--fetch Fetch upstream branches [Default: false].
Run git fetch for all current branches remote. If there is no
default upstream set origin/[currentBranch] is being fetched
--match=regexp Filter entries by paths [Default: all],
Match entire path to repository/submodule to provided
regular expression.
Root repository is always included
--track=branch Extra branches to track. [Default: none]
Displays number of commits in origin/[branch] but not in HEAD
Specify additional branches that will be listed after status column.
Displayed value represent number of commits in tracked branch that
are not included in actual HEAD
Might contain multiple branches "gitsmv --track dev --track master"
--debug Display executed commands [Default: false],
--no-color Disable colors,
--help Show this instruction
`);
gitsmv(cli.flags, res => {
console.log(res);
});