From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Thomas Harning <harningt@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH] add status.relativePaths config variable
Date: Fri, 07 Dec 2007 23:34:14 -0800 [thread overview]
Message-ID: <7vejdxy70p.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20071207212607.GA11504@coredump.intra.peff.net> (Jeff King's message of "Fri, 7 Dec 2007 16:26:07 -0500")
Jeff King <peff@peff.net> writes:
> The output of git-status was recently changed to output
> relative paths. Setting this variable to false restores the
> old behavior for any old-timers that prefer it.
>
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> On Fri, Dec 07, 2007 at 03:49:37PM -0500, Jeff King wrote:
>
>> Personally, I don't like either the "../" or the "./", but I actually
>> think the relative paths are less readable than the full paths in
>> general.
>
> So here is a config option to turn it off; I don't think there should be
> any consistency problems, since git-status output is meant to be
> human-readable (and after all, we just changed it :) ).
I like the general idea (and suspect we might want to make it default to
false to retain the original behaviour, but I'd refrain from suggesting
it, to keep the user experience stable during the upcoming -rc period).
We'd need an update to git-status documentation to mention the variable.
> diff --git a/builtin-commit.c b/builtin-commit.c
> index 18c6323..04b3bf1 100644
> --- a/builtin-commit.c
> +++ b/builtin-commit.c
> @@ -284,8 +284,7 @@ static int run_status(FILE *fp, const char *index_file, const char *prefix)
> {
> struct wt_status s;
>
> - wt_status_prepare(&s);
> - s.prefix = prefix;
> + wt_status_prepare(&s, prefix);
I have been wondering ever since receiving this patch if this is a good
interface change. Was there a problem if instead:
- The implementation of wt_status_prepare(&s) stays as before;
- run_status(), after calling wt_status_prepare(&s), notices the
configuration variable, and sets s.prefix conditionally;
next prev parent reply other threads:[~2007-12-08 7:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-07 16:57 [PATCH] quote_path: convert empty path to "./" Jeff King
2007-12-07 18:54 ` Johannes Schindelin
2007-12-07 19:05 ` Thomas Harning
2007-12-07 20:49 ` Jeff King
2007-12-07 21:26 ` [PATCH] add status.relativePaths config variable Jeff King
2007-12-08 7:34 ` Junio C Hamano [this message]
2007-12-08 7:47 ` Junio C Hamano
2007-12-08 8:02 ` Jeff King
2007-12-08 8:05 ` Junio C Hamano
2007-12-08 8:45 ` Jeff King
2007-12-08 7:55 ` Jeff King
2007-12-08 8:14 ` Junio C Hamano
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=7vejdxy70p.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=harningt@gmail.com \
--cc=peff@peff.net \
/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).