Skip to content

Add support to GitCmd - #916

Open
Aurze wants to merge 3 commits into
actionless:masterfrom
Aurze:add-support-for-custom-git-command
Open

Add support to GitCmd#916
Aurze wants to merge 3 commits into
actionless:masterfrom
Aurze:add-support-for-custom-git-command

Conversation

@Aurze

@Aurze Aurze commented Aug 3, 2026

Copy link
Copy Markdown

Goal

I wanna use difftastic to see PKGBUILD files diff

Solution

I allow to specify the git command to use git -C {{repo_path}} diff --ignore-space-change --ignore-all-space {{last_install_hash}} {{current_hash}} -- .
It allso has some "params" for variables.

Originally I implemented a "GitDiffExternalTool" but then I realize any new feature we would need yet an other params so instead I went with something more generic

Looking for feedback

So this solution works, I didn't test it like crazy yet, I'm looking on feedback like is this okay to let the user specify the full git command? This also deprecate the GitDiffArgs param, I could also put it as a replacable var? Or I can go back to a more specific approach of a GitDiffExternalTool.

Comment thread pikaur/install_cli.py
@actionless

Copy link
Copy Markdown
Owner

(and idea itself is good)

Comment thread pikaur/install_cli.py Outdated
Comment thread pikaur/install_cli.py
]
git_cmd = PikaurConfig().review.GitCmd.get_str()
git_args += shlex.split(
git_cmd.replace("{{repo_path}}", str(pkg_build.repo_path))

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still looks a bit weird, i think it would make more sense to substitute items after the split

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants