From: "James P. Howard\, II" <jh@jameshoward.us>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Add commit.infodisplay option to give message editor empty file
Date: Sat, 5 Dec 2009 10:47:53 -0500 [thread overview]
Message-ID: <20091205154753.GA3717@thermopylae.local> (raw)
In-Reply-To: <7vpr6t6fnz.fsf@alter.siamese.dyndns.org>
On Fri, Dec 04, 2009 at 11:30:56PM -0800, Junio C Hamano wrote:
> Two points and a half:
>
> - Why does info_display need to be visible to everybody else by being in
> cache.h and environment.c? Shouldn't its scope be similar to that of
> template_file, that is static to builtin-commit.c?
>
> - A configuration variable that does not allow the users to override from
> the command line is a no-no. We usually do command line option first
> and then (or at the same time) configuration variable as a typesaver.
I can make these changes in the next few days.
> - While the amount of change necessary for this change doesn't look too
> bad, is it really worth it? What is wrong with "1,$p" while using ed
> as your editor?
I tried a few variants of this, and shell script wrappers for ex (and
gate, which is a specizalized text editor that actually works kind of
well for commit message editing), and it worked fairly well.
The real motivation is that this feature ditches all assumptions about
the capabilities of the text editor. I am not sure where that leads
yet, but I'd rather make it possible.
James
--
James P. Howard, II, MPA MBCS
jh@jameshoward.us
next prev parent reply other threads:[~2009-12-05 15:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-04 23:04 [PATCH] Add commit.infodisplay option to give message editor empty file James P. Howard, II
2009-12-05 7:30 ` Junio C Hamano
2009-12-05 15:47 ` James P. Howard, II [this message]
2009-12-05 16:28 ` Jeff King
2009-12-05 23:09 ` James P. Howard, II
2009-12-06 4:22 ` Jeff King
2009-12-06 8:01 ` Junio C Hamano
2009-12-06 13:12 ` Jeff King
2009-12-07 22:45 ` [PATCH] Add commit.status, --status, and --no-status James P. Howard, II
2009-12-08 0:39 ` James Pickens
2009-12-08 6:04 ` Jeff King
2009-12-08 7:13 ` Junio C Hamano
2009-12-08 7:55 ` Jeff King
2009-12-08 14:07 ` James P. Howard, II
2009-12-07 22:43 ` [PATCH] Add commit.infodisplay option to give message editor empty file James P. Howard, II
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=20091205154753.GA3717@thermopylae.local \
--to=jh@jameshoward.us \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.