Commit Graph

7 Commits

Author SHA1 Message Date
Wayne Stambaugh c19341dfe7 Coding policy fixes. 2026-02-04 11:38:42 -05:00
Seth Hillbrand 0b116673ab 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
2026-01-26 22:20:25 -08:00
Seth Hillbrand 23765b6ebe Fix git status icons not showing when project opened via symlink
When a project is opened through a symlinked path, libgit2's
git_repository_workdir() returns the canonical path with symlinks
resolved. This caused a path mismatch between the tree cache
(which uses the user-provided symlinked path) and git status
results (which used canonical paths), preventing status icons
from being displayed.

The fix introduces SetProjectDir()/GetProjectDir() methods to
KIGIT_COMMON to store and use the user-provided project path.
A helper function computeSymlinkPreservingWorkDir() computes
the git working directory path while preserving symlinks from
the original user path.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21092
2026-01-11 20:04:12 -08:00
Mark Roszko c43e9cb35e Fix MSVC build 2025-10-07 00:09:58 +00:00
Jeff Young e84c94a557 Performance tweaks. 2025-10-06 15:06:39 +01:00
Mark Roszko 593238eed8 Fix build due to GIT_BUF_INIT on some platforms 2025-09-24 20:09:51 -04:00
Seth Hillbrand aac15f4596 Encapsulate libgit commands into single backend
Sets stage for allowing alternate backends for version control
2025-09-08 21:04:31 -07:00