From: Junio C Hamano <gitster@pobox.com>
To: Rodrigo Silva <linux@rodrigosilva.com>
Cc: Jonathan Nieder <jrnieder@gmail.com>,
Ben Walton <bwalton@artsci.utoronto.ca>,
666250@bugs.debian.org, git@vger.kernel.org
Subject: Re: [PATCH] Documentation: replace 'vi' for 'editor' to reflect build-time option
Date: Fri, 30 Mar 2012 09:46:50 -0700 [thread overview]
Message-ID: <7viphmm3yd.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20120330103326.272B040A067@cobalt.pobox.com> (Rodrigo Silva's message of "Fri, 30 Mar 2012 07:33:21 -0300")
Rodrigo Silva <linux@rodrigosilva.com> writes:
> At 23:16 29/3/2012, Junio C Hamano wrote:
> ...
>>I've already rejected this patch once, but that was primarily because the
>>patch was not justified with the above "I read everybody else's git uses
>>'vi' on the Interweb, and even though my distro's manual page says it uses
>>'nano', I didn't bother to read it." scenario.
>
> @Jonathan: I'm really sorry for this confusion...
> ... Junio suggested me to send this patch to
> Debian, that's why I filled the bug in Debian BTS. It was meant to be a
> Debian-only patch.
It is a Debian package bug that the git_*.diff patch they use to customize
the upstream source ends up making a resulting binary to use different
editor and pager but does so without editing Documentation/ files to match
the description to what their executable does. The resulting package is
not self consistent.
But we aren't making it particularly easy for Debian to do so.
The debian/rules (the Makefile that invokes our Makefile) file in the
git_*.diff patch merely overrides DEFAULT_EDITOR and DEFAULT_PAGER,
instead of patching editor.c and pager.c to replace the fallback hardcoded
defaults "vi" and "less". But these Makefile variables only affect that
goes in the executable, and they do not affect the documentation.
So in the shorter term, I think Jonathan's patch would be OK for me to
carry in my tree, but even in that case I think Debian still needs to
replace the "vi/less" in the documentation to tell what they chosen for
their users.
In the longer term, it may make more sense to let these Makefile variables
replace "vi" and "less" with whatever values set to them, while keeping
the "default chosen at the build time, usually" wording.
In any case, I'd appreciate it if either of you can turn Jonathan's "How
about something like this?" into the final version to be fed to "git am".
Thanks.
next prev parent reply other threads:[~2012-03-30 16:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120330002543.2138.91961.reportbug@localhost6.localdomain6>
2012-03-30 0:55 ` [PATCH] Documentation: replace 'vi' for 'editor' to reflect build-time option Jonathan Nieder
2012-03-30 2:16 ` Junio C Hamano
2012-03-30 10:33 ` Bug#666250: " Rodrigo Silva
[not found] ` <20120330103326.272B040A067@cobalt.pobox.com>
2012-03-30 16:46 ` Junio C Hamano [this message]
2012-03-31 8:40 ` [PATCH 0/2] " Jonathan Nieder
2012-03-31 8:42 ` [PATCH 1/2] var doc: default editor and pager are configurable at build time Jonathan Nieder
[not found] ` <4f76de0e.2ac7b60a.54ce.ffffd85eSMTPIN_ADDED@mx.google.com>
2012-03-31 10:51 ` Jonathan Nieder
2012-03-31 8:44 ` [PATCH 2/2] var doc: advertise current DEFAULT_PAGER and DEFAULT_EDITOR settings Jonathan Nieder
2012-03-31 17:55 ` Junio C Hamano
2012-04-18 20:02 ` Jonathan Nieder
2012-03-31 20:29 ` [PATCH] Documentation: replace 'vi' for 'editor' to reflect build-time option Phil Hord
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=7viphmm3yd.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=666250@bugs.debian.org \
--cc=bwalton@artsci.utoronto.ca \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
--cc=linux@rodrigosilva.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.