From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Michael Haggerty <mhagger@alum.mit.edu>, git@vger.kernel.org
Subject: Re: "git check-attr" lists macros as being "set" -- feature or bug?
Date: Tue, 26 Jul 2011 12:43:45 -0700 [thread overview]
Message-ID: <7vvcuoq13i.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20110726184756.GA520@sigill.intra.peff.net> (Jeff King's message of "Tue, 26 Jul 2011 12:47:56 -0600")
Jeff King <peff@peff.net> writes:
> I don't know the original rationale, but it seems like the only sane
> behavior to me.
I know the original rationale, which was "we didn't see any need to single
out macros at all, and the code does what was the most straightforward
from the point of view of the implementation". If the resulting behaviour
ended up to be also sane, that would just mean that the implementation was
good ;-).
I agree that showing the macros as set/unset just like elemental
attributes is the only sane thing to do. Majority of end users do not
care about how some attributes are macros (to cause other attributes to be
set or unset), would set "binary" to their JPEG files, and would expect
the check-attr to say "binary is set for this path", without having to
know that "binary" affects "diff" and "text".
When we say "check-attr tells you if the named attribute is set", do we
say "but macros cannot be examined this way" in the documentation? If
not, I do not think we need any cluttering update.
It is a separate issue if macros should also be listed as the new feature
that lists all attributes given to a path. I tend to think the macro
attributes as well as the other attributes they set should all be shown.
next prev parent reply other threads:[~2011-07-26 19:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 12:10 "git check-attr" lists macros as being "set" -- feature or bug? Michael Haggerty
2011-07-26 18:47 ` Jeff King
2011-07-26 19:43 ` Junio C Hamano [this message]
2011-08-03 13:19 ` Michael Haggerty
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=7vvcuoq13i.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mhagger@alum.mit.edu \
--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).