Git: Show error when pull fails due to unstaged changes

When git pull fails due to unstaged changes in the working directory,
show an informative error message instead of silently failing.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20363
This commit is contained in:
Seth Hillbrand
2026-01-26 22:20:25 -08:00
parent 4b7444bdc2
commit 0b116673ab
3 changed files with 69 additions and 4 deletions
+1
View File
@@ -43,6 +43,7 @@ struct CommitDetails
// Enum for result codes, error codes are negative, success codes are positive
enum class PullResult : int
{
DirtyWorkdir = -3,
MergeFailed = -2,
Error = -1,
Success = 0,