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

set custom commit options #126

Closed
tiesmaster opened this issue Nov 29, 2011 · 3 comments
Closed

set custom commit options #126

tiesmaster opened this issue Nov 29, 2011 · 3 comments

Comments

@tiesmaster
Copy link

It would be nice to have the possibility to set some default commit options Fugitive adds automatically to the args list. I've aliased git ci to do git commit -v, so I always get a verbose commit message. I know I can add -v to :Gcommit, but using C from the status window is much more powerful.

@tpope
Copy link
Owner

tpope commented Dec 10, 2011

Since git commit doesn't support default options, neither does :Gcommit. But you can create the equivalent of an alias:

command -bar -bang -nargs=* Gci :Gcommit<bang> -v <args>

With some autocmd trickery, you could remap C as well.

@tpope tpope closed this as completed Dec 10, 2011
@tiesmaster
Copy link
Author

Thanks, I appreciate your answer. Ci is an alias for commit, and so should
:Gci be, I agree on that.

I'll implement it using your pointers ;)
On Dec 10, 2011 7:04 PM, "Tim Pope" <
reply@reply.github.com>
wrote:

Since git commit doesn't support default options, neither does
:Gcommit. But you can create the equivalent of an alias:

command -bar -bang -nargs=* Gci :Gcommit -v

With some autocmd trickery, you could remap C as well.


Reply to this email directly or view it on GitHub:
#126 (comment)

@jchnkl
Copy link

jchnkl commented May 12, 2012

The mapping for "Gcommit -v" to cv in status window seems to be in place, but it is not documented in the helpfile yet.

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