diffstalkerd 0.13.8 → 0.13.10
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.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,44 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.13.10] - 2026-10-20
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **The update command restarts a systemd-run daemon too.** Clicking the
|
|
13
|
+
version in the web UI's status bar copied only the update command, and
|
|
14
|
+
the daemon kept running the old code until restarted by hand. When
|
|
15
|
+
systemd runs the daemon, the copied command now ends with the restart:
|
|
16
|
+
`yay -S diffstalker-git && systemctl --user restart diffstalkerd`. The
|
|
17
|
+
daemon offers it only when systemd started this very process and its
|
|
18
|
+
cgroup names the unit, so it never guesses a unit name. A daemon started
|
|
19
|
+
any other way copies the update alone, as before. `GET /version` carries
|
|
20
|
+
it as `restart`.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **Compare's include toggles stay set.** The staged, unstaged and
|
|
25
|
+
untracked toggles went back to off on Back/Forward, on a link that named
|
|
26
|
+
a base or a stack layer, on a repo switch and on a reload. They are now
|
|
27
|
+
saved with the browser's other preferences.
|
|
28
|
+
|
|
29
|
+
## [0.13.9] - 2026-10-16
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **Compare now defaults to the mainline the branch forked from.** The
|
|
34
|
+
default base was the first `main` or `master` among the remote-tracking
|
|
35
|
+
branches, preferring any remote not named `origin`. That suits a clone
|
|
36
|
+
where `origin` is your fork and `upstream` the real repo, but with the
|
|
37
|
+
names the other way round (`origin` the real repo, `fork` your fork) it
|
|
38
|
+
picked the fork's `main`. When that `main` was years old, Compare showed
|
|
39
|
+
dozens of commits that were never part of the branch. Now each remote
|
|
40
|
+
offers its default branch (its `HEAD`, else `main`, else `master`), and
|
|
41
|
+
the one with the fewest commits between it and the branch wins. A tie
|
|
42
|
+
goes to `upstream`, then `origin`. The worktree switcher's commits-ahead
|
|
43
|
+
count uses the same default, now worked out per worktree. The base
|
|
44
|
+
picker no longer puts non-`origin` remotes first either.
|
|
45
|
+
|
|
8
46
|
## [0.13.8] - 2026-10-15
|
|
9
47
|
|
|
10
48
|
### Changed
|
package/README.md
CHANGED
|
@@ -202,7 +202,7 @@ with a 400 so they can never be parsed as git flags.
|
|
|
202
202
|
| Method | Path | What |
|
|
203
203
|
| ------ | -------------------------- | ------------------------------------------------ |
|
|
204
204
|
| GET | `/health` | `{ok, ready, home, http: {port}, symbols}` — `http.port` is the loopback port a browser reaches the web UI on, or null when only a socket is bound (what `diffstalker link` needs to build a URL at all) |
|
|
205
|
-
| GET | `/version` | `{current, latest, status, install}` — the running version against npm's `latest` dist-tag (`current` \| `outdated` \| `ahead` \| `unknown`). The npm lookup is cached (6h, 5min after a failure) and only ever runs when this endpoint is called; `--no-update-check` skips it, leaving `latest: null`. `install` is `{method, package, command}` — how this daemon was installed (`npm` \| `bun` \| `pnpm` \| `yarn` \| `pacman` \| `unknown`) and the one command that updates it, detected once from where the daemon's own files live. An install nothing owns reports `unknown` with a null command rather than a guess |
|
|
205
|
+
| GET | `/version` | `{current, latest, status, install, restart}` — the running version against npm's `latest` dist-tag (`current` \| `outdated` \| `ahead` \| `unknown`). The npm lookup is cached (6h, 5min after a failure) and only ever runs when this endpoint is called; `--no-update-check` skips it, leaving `latest: null`. `install` is `{method, package, command}` — how this daemon was installed (`npm` \| `bun` \| `pnpm` \| `yarn` \| `pacman` \| `unknown`) and the one command that updates it, detected once from where the daemon's own files live. An install nothing owns reports `unknown` with a null command rather than a guess. `restart` is the command that restarts this daemon (`systemctl --user restart diffstalkerd`, or `sudo systemctl restart …` for a system unit), set only when systemd started this very process (`$SYSTEMD_EXEC_PID` is its pid) and `/proc/self/cgroup` names a plain `.service` unit; otherwise null |
|
|
206
206
|
| GET | `/repos` | List open repos (`id`, `path`, `branch`) |
|
|
207
207
|
| POST | `/repos` | Open a repo: `{"path": "/abs/path"}` → `{id, path}` (201 created, 200 already open). 400 for a relative path or a directory that is not a git repository, 404 when the path does not exist. One missing last segment under a repo still opens the repo above it (`<repo>/nope` opens `<repo>`); a path missing more than one level deep (`<repo>/nope/deeper`) is a 404 |
|
|
208
208
|
| DELETE | `/repos/:id` | Close a repo (refcounted per open) |
|