From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [RFC/PATCH] interpolate '\n' as newline
Date: Fri, 06 Jul 2007 19:13:46 -0700 [thread overview]
Message-ID: <7vy7htc65h.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0707062100360.4093@racer.site> (Johannes Schindelin's message of "Fri, 6 Jul 2007 21:02:00 +0100 (BST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> All places which call interpolate() get this interpolation for free.
>
> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
>
> ---
>
> In the back of my head, I remembered that a few people
> were interested in this.
>
> Judging by the diffstat, it really escapes me why these people
> did not implement it.
>
> However, there is a chance that this change is not liked by
> all places that call interpolate(). merge-recursive can live
> with it, I guess.
I actually think merge-recursive has much bigger chance of
getting broken than git-daemon, but only _if_ people are already
using custom merge programs this becomes an issue. It is much
more common to see two letter sequence '\n' as a string literal
in a script than in a pathname.
> But daemon interpolates the path... However,
> it seems only the command line of daemon can change the string,
> so this change should be safe.
The command line needs to say --interpolated-path="...\n..."
and expect that '\n' would come out as two characters backslash
and en in the _pathname_ to get broken, and it is very unlikely
that anybody is insane enough to have such a path.
prev parent reply other threads:[~2007-07-07 2:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-06 20:02 [RFC/PATCH] interpolate '\n' as newline Johannes Schindelin
2007-07-07 2:13 ` Junio C Hamano [this message]
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=7vy7htc65h.fsf@assigned-by-dhcp.cox.net \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--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