git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Cline <matt@nightrealms.com>
To: git@vger.kernel.org
Subject: git-commit feature request: pass editor command line options
Date: Tue, 13 Oct 2009 21:58:51 -0700 (PDT)	[thread overview]
Message-ID: <25885354.post@talk.nabble.com> (raw)


I'd like to be able to have git-commit pass the commit-message editor command
line options which aren't passed to the editor for other usages.  Right now
I have "co" aliased to "!sh -c 'GIT_EDITOR=git-commit-editor git commit'",
where git-commit-editor is a wrapper around my editor-of-choice which passes
the editor the command line options I want, but it'd be simpler and cleaner
if I could just set "commit.editor_options=-BAR".  Or even let there be a
separate editor for commits, so I could do "core.editor=foo" and
"commit.editor=foo -BAR".
-- 
View this message in context: http://www.nabble.com/git-commit-feature-request%3A-pass-editor-command-line-options-tp25885354p25885354.html
Sent from the git mailing list archive at Nabble.com.

             reply	other threads:[~2009-10-14  5:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-14  4:58 Matthew Cline [this message]
2009-10-14 17:23 ` git-commit feature request: pass editor command line options Miklos Vajna
2009-10-14 19:11   ` Junio C Hamano
2009-10-14 21:12     ` Jeff King
2009-10-14 20:03   ` Matthew Cline
2009-10-14 22:12     ` Miklos Vajna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25885354.post@talk.nabble.com \
    --to=matt@nightrealms.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).