All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Kevin Ballard <kevin@sb.org>
Cc: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>,
	git@vger.kernel.org, "Marc Strapetz" <marc.strapetz@syntevo.com>
Subject: Re: [PATCH] attr: support quoting pathname patterns in C style
Date: Tue, 09 Nov 2010 16:07:29 -0800	[thread overview]
Message-ID: <7vpquejb26.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <626BD1B6-4DDF-457F-B430-F15C891710E2@sb.org> (Kevin Ballard's message of "Mon\, 8 Nov 2010 13\:56\:01 -0800")

Kevin Ballard <kevin@sb.org> writes:

> Basically what I'm trying to say is, we already break one particular
> "rather rare" setup.

Let's try again.  One particular "rather rare" setup never worked.  As it
is "rather rare", we do not really care that deeply to make that work.
Another particular "rather rare" setup used to work.  Even though we do
not really care that deeply to keep it working, is it worth breaking it?

> ... I would love to come up with a solution that supports both setups,
> but I don't know if one exists outside of using a config variable to
> control whether git attribute patterns support quoting (a solution I am
> not particularly fond of for this case).

Controlling this with a config would be a disaster.  It would mean that
the same version of updated git would interpret the same .gitattributes
file differently, and the situation will continue forever.  Compared to
that, the idea J6t brought up would be far easier to swallow.  Older
vintage of git will misbehave on "rather rare" paths upon seeing a cquoted
pattern (i.e. the pattern will not match the intended paths, and will
instead match "rather rare" paths that begin with dq) but that is no worse
than what we already have.  And newer vintages of git will interpret the
attribute file written with that magic exactly the same way everywhere,
regardless of the configuration setting.

Having said all that, I actually am in favor of using cquote.  It would
have been what we should have done in the first place.

My preference is to admit that we made a mistake of not using cquote when
we originally introduced .gitattributes, clearly state that the version of
git with this new backward incompatible feature will _break_ rare existing
setups if they had paths whose name begin with a dq and applied attributes
to them, and use cquote unconditionally, perhaps with a version bump.

I just didn't like the tone of saying "Nobody would have used such an
insane path anyway so we don't care".  I am Ok if our message is "Sorry,
this release would break if you used to rely on this; we think it is
unlikely and are hoping that most of you won't be affected".

  parent reply	other threads:[~2010-11-10  0:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-03 12:24 .gitattributes escape character? Marc Strapetz
2010-11-03 15:47 ` Nguyen Thai Ngoc Duy
2010-11-03 17:13   ` Marc Strapetz
2010-11-03 21:03   ` Kevin Ballard
2010-11-04 13:55   ` [PATCH] attr: support quoting pathname patterns in C style Nguyễn Thái Ngọc Duy
2010-11-04 17:21     ` Sverre Rabbelier
2010-11-04 22:53     ` Eric Sunshine
2010-11-05  2:02       ` Nguyen Thai Ngoc Duy
2010-11-05 16:58     ` Junio C Hamano
2010-11-05 21:46       ` Kevin Ballard
2010-11-08 18:40         ` Junio C Hamano
2010-11-08 21:56           ` Kevin Ballard
2010-11-09  7:48             ` Johannes Sixt
2010-11-09  8:08               ` Kevin Ballard
2010-11-10  0:07             ` Junio C Hamano [this message]
2010-11-10  0:27               ` Kevin Ballard
2010-11-06  8:28       ` Marc Strapetz
2010-11-07  8:05       ` Nguyễn Thái Ngọc Duy

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=7vpquejb26.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=kevin@sb.org \
    --cc=marc.strapetz@syntevo.com \
    --cc=pclouds@gmail.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.