Lunny Xiao
7a4860734d
refactor: check git exit code through an interface instead of *exec.ExitError ( #40447 )
...
`gitcmd.IsErrorExitCode` now matches any error exposing `ExitCode()
int`, which `*exec.ExitError` does, instead of asserting the concrete
type, and `Commit.HasPreviousCommit` uses it instead of its own type
assertion.
Exit code checks should not depend on how a command was run, so a
command runner other than `os/exec` can report exit codes without
touching callers. No behavior change.
Assisted-by: Codet:claude
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: silverwind <me@silverwind.io >
2026-11-25 00:24:06 +00:00
..
2026-10-24 13:48:19 +00:00
2026-08-22 08:59:37 +00:00
2026-11-25 00:24:06 +00:00
2026-11-08 18:38:23 +00:00
2023-02-04 10:30:43 +08:00
2026-08-26 17:24:07 +02:00
2026-11-12 06:19:10 +00:00
2026-07-19 07:32:00 +00:00
2026-10-24 13:48:19 +00:00
2026-08-11 16:33:15 +00:00
2026-08-11 16:33:15 +00:00
2026-10-24 13:48:19 +00:00
2026-10-20 11:03:34 -07:00
2026-08-07 02:44:55 +00:00
2026-10-03 10:04:24 +00:00
2026-07-28 17:04:22 +00:00
2026-07-28 17:04:22 +00:00
2026-07-21 12:18:00 +00:00
2026-07-28 17:04:22 +00:00
2026-07-23 01:22:26 +00:00
2026-07-23 01:22:26 +00:00
2026-07-23 01:22:26 +00:00
2025-05-09 16:17:08 +00:00
2026-10-24 13:48:19 +00:00
2026-07-20 16:07:38 +00:00
2026-08-05 00:17:07 +08:00
2026-10-24 13:48:19 +00:00
2026-07-20 16:07:38 +00:00
2026-11-20 02:58:39 +00:00
2026-10-03 10:04:24 +00:00
2026-09-06 11:27:04 +02:00
2026-11-07 11:56:56 +00:00
2026-07-15 17:30:01 +00:00
2026-10-24 13:48:19 +00:00
2026-10-04 13:40:27 +00:00
2026-10-04 13:40:27 +00:00
2026-07-17 18:44:31 +08:00
2026-11-12 06:19:10 +00:00
2026-11-25 00:24:06 +00:00
2026-11-09 17:59:52 +00:00
2026-10-20 21:00:32 +00:00
2026-07-20 16:07:38 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2026-10-22 01:27:02 +00:00
2026-11-09 12:42:40 +00:00
2026-10-20 22:10:04 +00:00
2026-11-12 06:19:10 +00:00
2026-09-15 10:59:34 +02:00
2026-10-16 08:19:57 +00:00
2026-11-09 17:59:52 +00:00
2026-11-09 17:59:52 +00:00
2026-07-20 16:07:38 +00:00
2026-11-17 02:47:17 +00:00
2026-07-28 17:04:22 +00:00
2026-08-25 12:02:31 +00:00
2026-08-29 19:54:07 +00:00
2026-11-13 07:24:37 +00:00
2026-11-13 07:24:37 +00:00
2026-11-11 17:07:57 +00:00
2026-08-21 07:52:23 +00:00
2026-11-06 11:59:49 +00:00
2026-08-25 12:02:31 +00:00
2026-10-03 10:04:24 +00:00
2026-10-04 16:26:14 +08:00
2026-10-03 10:04:24 +00:00
2026-07-23 01:22:26 +00:00
2026-11-09 17:59:52 +00:00
2026-11-12 06:19:10 +00:00
2026-07-20 16:07:38 +00:00
2026-09-29 11:56:51 +00:00
2026-08-05 00:17:07 +08:00
2026-11-12 06:19:10 +00:00
2026-11-12 06:19:10 +00:00
2026-11-12 06:19:10 +00:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-10-14 20:54:33 +02:00
2026-11-25 00:18:50 +00:00
2026-11-09 17:59:52 +00:00
2026-08-28 14:17:01 -07:00
2026-11-09 17:59:52 +00:00
2026-09-15 10:59:34 +02:00
2026-10-04 16:26:14 +08:00
2026-10-20 21:00:32 +00:00
2026-10-03 10:04:24 +00:00
2026-10-03 10:04:24 +00:00
2026-10-24 13:48:19 +00:00
2025-12-25 19:26:23 -08:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-11-12 06:19:10 +00:00
2026-11-12 06:19:10 +00:00
2026-08-25 12:02:31 +00:00
2026-11-09 17:59:52 +00:00
2026-11-12 06:19:10 +00:00
2026-09-19 13:04:53 +00:00
2026-09-19 13:04:53 +00:00
2026-07-28 17:04:22 +00:00
2026-11-09 12:42:40 +00:00
2026-10-01 15:51:07 +00:00
2026-10-01 15:51:07 +00:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-09-29 14:43:36 +02:00
2026-10-03 10:04:24 +00:00
2026-11-25 00:18:50 +00:00
2026-10-24 13:48:19 +00:00
2026-10-03 10:04:24 +00:00
2026-07-23 01:22:26 +00:00
2026-07-21 12:18:00 +00:00
2026-11-09 17:59:52 +00:00
2026-05-07 16:19:45 +02:00
2026-08-22 08:59:37 +00:00
2026-10-03 10:04:24 +00:00
2026-10-24 13:48:19 +00:00
2026-04-14 12:03:26 +00:00
2026-04-14 12:03:26 +00:00
2026-10-04 23:50:46 +00:00
2026-10-20 21:00:32 +00:00
2026-11-12 06:19:10 +00:00
2025-07-30 07:08:59 +00:00
2026-08-25 12:02:31 +00:00