git-tm 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +8 -0
  2. package/package.json +1 -1
  3. package/src/cli.js +1 -0
package/README.md CHANGED
@@ -39,6 +39,14 @@ git-tm
39
39
 
40
40
  Then open `http://localhost:7890`, or start it with `git-tm --open` to open the browser for you. Point it at another repository with `git-tm ../other-repo`.
41
41
 
42
+ It also works as a Git subcommand. Git runs any `git-<name>` program on your `PATH` as `git <name>`, so once installed you can type:
43
+
44
+ ```bash
45
+ git tm
46
+ ```
47
+
48
+ `git -C ../other-repo tm` works too. Use `git tm -h` for help: Git handles `git tm --help` itself and looks for a manual page instead.
49
+
42
50
  | Option | Description |
43
51
  | --- | --- |
44
52
  | `-p, --port <number>` | Port to listen on (default `7890`; the next free port is used if it is busy) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-tm",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Explore any Git repository's history in your browser: commit graph, diffs, blame, compare and insights. Zero dependencies.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -25,6 +25,7 @@ ${c.accent(c.bold("git-tm"))} ${c.dim(`v${pkg.version}`)} Explore a repository'
25
25
 
26
26
  ${c.bold("Usage")}
27
27
  git-tm [path] [options]
28
+ git tm [path] [options] ${c.dim("same thing, as a Git subcommand (use -h for help)")}
28
29
 
29
30
  ${c.bold("Options")}
30
31
  -p, --port <number> Port to listen on ${c.dim("(default 7890, next free port is used if busy)")}