From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Johannes Sixt <J.Sixt@eudaptics.com>
Subject: Re: [PATCH 3/3] Teach 'diff' about 'nodiff' attribute.
Date: Fri, 13 Apr 2007 13:54:55 +0100 [thread overview]
Message-ID: <200704131354.57056.andyparkins@gmail.com> (raw)
In-Reply-To: <461F6D74.63EF2769@eudaptics.com>
On Friday 2007, April 13, Johannes Sixt wrote:
> Yet in Junio's introductory message, the example was
>
> * crlf !nodiff
>
> and it made me think: huh? And then again: huh?
>
> I don't mind if you call me dumb now, but even an intelligent person
Wouldn't dream of it.
> will have to think a second or two about the meaning. That's plainly
> not necessary. In particular, where there can be no difference
> between "diff" and "!nodiff".
As I said, I wouldn't like to make the call.
I understand your point - however I think I understand why Junio chose
nodiff as the attribute. I would imagine that git /wants/ to show a
textual diff for everything as its default. In that case, the
attribute that you would assign to the least number of files
is "nodiff". Mostly you want diffs, so the attribute implemented is
for the special case and is "nodiff".
If I've understood the attributes system correctly, it's worth bearing
in mind that "!diff" is not the same as "nodiff". The not in "!diff"
means "supress the attribute diff", not as you would traditionally
imagine "not-diff". In this case it doesn't matter because there are
only two possibilities for the diff engine - show the diff or don't.
However, more attributes might get added that aren't so simple.
Junio - This makes me think that perhaps "!" is not the right symbol for
this - that's going to get read by programmers everywhere as NOT,
rather than suppress. Perhaps it doesn't matter, I might be
over-thinking this.
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
next prev parent reply other threads:[~2007-04-13 12:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-13 9:01 [PATCH 3/3] Teach 'diff' about 'nodiff' attribute Junio C Hamano
2007-04-13 10:49 ` Johannes Sixt
2007-04-13 11:30 ` Andy Parkins
2007-04-13 11:45 ` Johannes Sixt
2007-04-13 12:54 ` Andy Parkins [this message]
2007-04-13 14:09 ` Nicolas Pitre
2007-04-13 14:26 ` Julian Phillips
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=200704131354.57056.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=J.Sixt@eudaptics.com \
--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