Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding commands arbitrarily, from the configuration file #61

Open
frank-lenormand opened this issue Mar 13, 2024 · 2 comments

Comments

@frank-lenormand
Copy link

Hi,

I believe it’s not possible to override the Git commands run by Gitu (or defined new Gitu commands) from the configuration file:

https://github.com/altsem/gitu/blob/a0c2970/src/default_config.toml

This might be out of scope for the project, but I’d appreciate being able to define my own shortcuts, similarly to how I do it with tig.

Thanks!

@evanrichter
Copy link

I'd love to configure these commands as well. A concrete example is my alias for git commit in my shell: alias gg='git commit --verbose' so that I can see the diff of what I'm about to commit, right in my editor.

I'd love to hit cc in gitu, have --verbose appended, and also see the diff in my commit message editor :)

@altsem
Copy link
Owner

altsem commented Mar 23, 2024

@evanrichter Didn't know about this, will start using this myself 👍. For this particular case, there's a configuration option in git that'll make it work in gitu as well:
git config --global commit.verbose true

@altsem altsem added enhancement New feature or request and removed enhancement New feature or request labels Mar 28, 2024
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

No branches or pull requests

3 participants