mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-14 15:53:24 +01:00
[PR #302] [MERGED] Move a bunch of git ops to use the git binary #224
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/302
Author: @gschier
Created: 11/17/2025
Status: ✅ Merged
Merged: 11/18/2025
Merged by: @gschier
Base:
main← Head:git-binary📝 Commits (10+)
0e8dfa1PoC binary command for pushingea5ed90PoC for getting credentials1322aa3Tweaks83cbe47Add support for managing Git remotes and handle credential prompts for pull/push actionsa376a7dFix messaging4cf9863Convert fetch as wellf4777f2Move Git commit as welle903e60Add error handling for missing Git binary and refactor command creation17ff563Share push() between commands8c130b0PR fixes📊 Changes
43 files changed (+1239 additions, -1177 deletions)
View changed files
📝
src-tauri/yaak-common/src/lib.rs(+1 -1)📝
src-tauri/yaak-git/bindings/gen_git.ts(+5 -5)📝
src-tauri/yaak-git/build.rs(+4 -0)📝
src-tauri/yaak-git/index.ts(+148 -76)📝
src-tauri/yaak-git/permissions/default.toml(+4 -0)➕
src-tauri/yaak-git/src/add.rs(+16 -0)➕
src-tauri/yaak-git/src/binary.rs(+16 -0)📝
src-tauri/yaak-git/src/branch.rs(+8 -18)➖
src-tauri/yaak-git/src/callbacks.rs(+0 -76)📝
src-tauri/yaak-git/src/commands.rs(+36 -5)➕
src-tauri/yaak-git/src/commit.rs(+20 -0)➕
src-tauri/yaak-git/src/credential.rs(+47 -0)📝
src-tauri/yaak-git/src/error.rs(+9 -0)📝
src-tauri/yaak-git/src/fetch.rs(+12 -29)➖
src-tauri/yaak-git/src/git.rs(+0 -673)➕
src-tauri/yaak-git/src/init.rs(+14 -0)📝
src-tauri/yaak-git/src/lib.rs(+17 -7)➕
src-tauri/yaak-git/src/log.rs(+73 -0)📝
src-tauri/yaak-git/src/pull.rs(+79 -33)📝
src-tauri/yaak-git/src/push.rs(+42 -52)...and 23 more files
📄 Description
https://feedback.yaak.app/p/use-git-binary-for-trickier-ops
This PR uses the installed
gitbinary for fetch, pull, push, and commit operations (usedgit2crate before) to ensure the behavior is what the users expect, regarding SSH, signing, proxies, and more.It also adds:
https://remotes🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.