Seth Hillbrand
a603ad8041
Allow for 8 hex char + 1 nul char in VCSSHORTHASH
12 hours ago
Mark Roszko
c43e9cb35e
Fix MSVC build
2 days ago
Jeff Young
e84c94a557
Performance tweaks.
2 days ago
Mark Roszko
593238eed8
Fix build due to GIT_BUF_INIT on some platforms
2 weeks ago
Seth Hillbrand
4ed56d87a4
Lazy load git credentials when needed
Prevents querying SecretStore on boot
Fixes https://gitlab.com/kicad/code/kicad/issues/20176
2 weeks ago
jean-pierre charras
79a3b7ac5f
Add missing header to compil on msys2
4 weeks ago
Seth Hillbrand
accbee3c6e
Move git stuff to kicommon to fix build
And do other cool stuff
4 weeks ago
Seth Hillbrand
c64f99c57a
ADDED: VCSHASH and VCSSHORTHASH
Right now, git hashes only resolved by the variables ${VCSHASH} or
${VCSSHORTHASH}
4 weeks ago
Mark Roszko
297ca1bb7b
Fix windows builds with a temporary hackfix for now
4 weeks ago
Seth Hillbrand
aac15f4596
Encapsulate libgit commands into single backend
Sets stage for allowing alternate backends for version control
4 weeks ago
Seth Hillbrand
11f9817ebc
Fix compile issue for Ubuntu
Thanks dnschneid!
2 months ago
Seth Hillbrand
9ea088f83f
Add git shutdown command
Will allow interrupting long commands during the update message
2 months ago
Seth Hillbrand
c9e9a4e073
Allow git init to succeed without remote
2 months ago
Seth Hillbrand
a7ab02224e
Fix pathspec lifetime issue
Don't let stack pointers go out of scope before using
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21417
2 months ago
Seth Hillbrand
f2b6ac5d18
Refactor git calls into their own namespace
2 months ago
Seth Hillbrand
01cf01981f
Add more generalized pull for non-origin remotes
2 months ago
Seth Hillbrand
261d31c9e8
Handle case where there is no parent in the commit
2 months ago
Seth Hillbrand
7af404af43
Fix improper boolean check
This was assigning a boolean 1 or 0 to the error instead of the git
error code
2 months ago
Seth Hillbrand
2aad11e3e7
Refactor some git routines into utility class
2 months ago
Jeff Young
96fa79cef2
Minor performance optimizations.
4 months ago
Jeff Young
06dcb64ad8
Harden progress reporter API against misuse.
Also, titles are nouns, not verbs. (Messages
*inside* reporters are verbs.)
Also implements progress reporter for Altium
schematic import.
4 months ago
Seth Hillbrand
ca7fbbe176
Add wait dialog when switching projects
If we are in the middle of a git operation when switching projects, wait
and show the user a dialog explaining what is going on
5 months ago
Tomasz Wlostowski
1638322649
KIGIT: fix crash when the repo has no remote set
7 months ago
Seth Hillbrand
cf93cdf13f
Respect user preference for rebase/merge
7 months ago
Seth Hillbrand
ea36110980
Trying again to fix Mac build
7 months ago
Seth Hillbrand
b65ceb60b2
Fix builds for newer libgit2 (1.8.0 and newer)
7 months ago
Seth Hillbrand
faf6243d1a
Fix build on Windows
7 months ago
Seth Hillbrand
b8225ba2d6
Fix some regressions in git handling
Set default to rebase for pull
Update error string on auth failure
Improve trace logging
7 months ago
Seth Hillbrand
676dd4ceec
Fix inheritance for git_common
Avoids repo type pointer issues when casting from void
7 months ago
aris-kimi
bb62444fe9
Fix a git2 related crash when closing KiCad
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/20202
7 months ago
Seth Hillbrand
2c52f98da4
Add ability for git to negotiate with agents
Updates the git connection dialog to reflect default agentic behavior,
followed by default keys and only then reverting to a custom selection
if the user desires
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20204
7 months ago
Seth Hillbrand
26c331a837
Adjust git handling
- Utilize scoped deletion for individual git_*_free() calls
- Protect against multiple usage when updating icons
- Reduce frequency of git update calls
7 months ago
Seth Hillbrand
18ac99d838
Prevent fetch without repo
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20152
7 months ago
Seth Hillbrand
2c54ab277b
Thread git checks
Push the git checks from the main thread into child threads to prevent
resource contention in some cases where Windows machines might have many
files in git that are _also_ being managed by Google Drive
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20078
7 months ago
Seth Hillbrand
ba208fd5c9
Suppress git remove if not at head
Don't offer to remove the .git directory if we are not looking at the
base of the git repository for safety
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19889
8 months ago
Seth Hillbrand
7edacd4fb8
Fix git push for some configurations
Reset ssh test keys prior to pushing. Specify head reference
8 months ago
Jon Evans
04387dd42f
Git: safety for calling KIGIT_COMMON with no repo
8 months ago
Jon Evans
d4815534bf
Fix lifetime of git_reference in handleFastForward
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19890
8 months ago
Seth Hillbrand
988d229bbf
Clean up unused var
Turns out we didn't need that one
9 months ago
Seth Hillbrand
5a57e5cfd4
Handle SSH keys better
OpenSSH will iterate through a series of keys. Additionally, there may
be a key specified in the ssh/config file that we need to account for.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18864
9 months ago
Seth Hillbrand
427d7d2dad
Move git password management to local password control
Don't keep passwords in plain text config files that may be checked into
version control. Passwords stored in system-specific password managers
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18053
9 months ago
Wayne Stambaugh
5c8f4697ca
Common folder housekeeping part 1.
9 months ago
Seth Hillbrand
0b2d4d4879
Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo. Avoids needing to
repeatly update.
Also updates AUTHORS.txt from current repo with contributor names
9 months ago
Jon Evans
a802ba1199
Make Git push/pull errors visible
12 months ago
Alex Shvartzkop
bc07efc076
Fix a build issue on MSVC with wx 3.3.
1 year ago
Wayne Stambaugh
795a9eea60
Coding policy fixes.
This is primarily to change all instances of wxLogDebug with wxLogTrace
so developers do not have to sift through debugging output that is always
dumped. The only exception is for code blocks built in debug builds and
called on demand for dumping object states.
1 year ago
Seth Hillbrand
8a306eecb6
Cleanup libgit init calls
1 year ago
Marek Roszko
0ce227fa92
Can't use forward declare with std::vector
Not allowed per C++ standard
See https://github.com/llvm/llvm-project/issues/57700
2 years ago
Ian McInerney
9456f35491
Properly cleanup git repos and memory on project/frame deletion
* Ensure the git backend is deleted when the project tree is deleted.
* Unload the git repo for a project when the project is unloaded from
the tree.
2 years ago
Ian McInerney
3a90b729ea
Hide unused variable warnings in git error strings
These strings aren't actually used right now, but they may be used
in the future, so don't actually remove them but silence the error that
they aren't used.
2 years ago