git-tm 1.0.0 → 1.0.2

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 +20 -2
  2. package/package.json +11 -3
  3. package/src/cli.js +1 -0
package/README.md CHANGED
@@ -4,11 +4,13 @@
4
4
  <h1>Git Time Machine</h1>
5
5
 
6
6
  <p>Explore any Git repository's history in your browser.<br>
7
- Commit graph, diffs, blame, compare and insights. One command, zero dependencies.</p>
7
+ Commit graph, diffs, blame, insights and time travel between any two commits. One command, zero dependencies.</p>
8
8
 
9
9
  <a href="https://www.npmjs.com/package/git-tm"><img src="https://img.shields.io/npm/v/git-tm?color=f05133" alt="npm version"></a>
10
10
  <img src="https://img.shields.io/badge/dependencies-0-2ea44f" alt="zero dependencies">
11
11
  <img src="https://img.shields.io/npm/l/git-tm" alt="license">
12
+
13
+ <p><a href="https://git-time-machine.js.org"><b>Documentation</b></a> · <a href="https://www.npmjs.com/package/git-tm">npm</a></p>
12
14
  </div>
13
15
 
14
16
  <br>
@@ -39,6 +41,14 @@ git-tm
39
41
 
40
42
  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
43
 
44
+ 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:
45
+
46
+ ```bash
47
+ git tm
48
+ ```
49
+
50
+ `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.
51
+
42
52
  | Option | Description |
43
53
  | --- | --- |
44
54
  | `-p, --port <number>` | Port to listen on (default `7890`; the next free port is used if it is busy) |
@@ -80,7 +90,7 @@ Then open `http://localhost:7890`, or start it with `git-tm --open` to open the
80
90
  | --- | --- |
81
91
  | `fix login` | Commit messages |
82
92
  | `author:ada` | Commits by an author (name or email) |
83
- | `path:src/app.js` | Commits that touched a path, following renames |
93
+ | `path:src/app.js` | Commits that touched a path |
84
94
  | `code:parseConfig` | Commits that added or removed a string (`git log -S`) |
85
95
  | `a1b2c3d` | Jumps straight to a commit |
86
96
 
@@ -159,6 +169,14 @@ git push origin main --follow-tags
159
169
 
160
170
  GitLab CI ([`.gitlab-ci.yml`](.gitlab-ci.yml)) runs the same tests. It publishes only if an `NPM_TOKEN` CI/CD variable is set, so a mirrored tag is not published twice.
161
171
 
172
+ ### Website
173
+
174
+ The documentation site at [git-time-machine.js.org](https://git-time-machine.js.org) is plain HTML in [`docs/`](docs), served by GitHub Pages from the `main` branch's `/docs` folder. There is no build step; preview it with any static server:
175
+
176
+ ```bash
177
+ python3 -m http.server -d docs 8000
178
+ ```
179
+
162
180
  ## Background
163
181
 
164
182
  Git Time Machine started at [FOSS Hack 2025](https://fossunited.org/fosshack/2025). Version 1 is a complete rewrite focused on speed, a clean interface and deeper Git features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git-tm",
3
- "version": "1.0.0",
4
- "description": "Explore any Git repository's history in your browser: commit graph, diffs, blame, compare and insights. Zero dependencies.",
3
+ "version": "1.0.2",
4
+ "description": "Explore any Git repository in your browser: commit graph, diffs, blame, insights and time travel between any two commits. Zero dependencies.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "git-tm": "src/cli.js"
@@ -24,11 +24,19 @@
24
24
  "git",
25
25
  "git-tm",
26
26
  "git-time-machine",
27
+ "time-travel",
27
28
  "git-history",
29
+ "git-log",
30
+ "git-graph",
28
31
  "commit-graph",
32
+ "git-gui",
33
+ "git-ui",
34
+ "history-viewer",
29
35
  "diff",
30
36
  "blame",
37
+ "compare",
31
38
  "cli",
39
+ "developer-tools",
32
40
  "visualization"
33
41
  ],
34
42
  "author": "nandhu-44",
@@ -36,5 +44,5 @@
36
44
  "bugs": {
37
45
  "url": "https://github.com/nandhu-44/Git-Time-Machine/issues"
38
46
  },
39
- "homepage": "https://github.com/nandhu-44/Git-Time-Machine#readme"
47
+ "homepage": "https://git-time-machine.js.org"
40
48
  }
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)")}