Files
gitea-MIRROR/modules/git
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-05 00:17:07 +08:00
2026-08-05 00:17:07 +08:00
2025-07-30 07:08:59 +00:00