From: luc.linux@mailoo.org
To: alex@bellandwhistle.net, Git Mailing List <git@vger.kernel.org>
Subject: Re: gitignore vs. exclude vs assume-unchanged?
Date: Sat, 26 Apr 2014 09:52:45 +0200 [thread overview]
Message-ID: <20140426075245.GA4123@luc-arch> (raw)
In-Reply-To: <35592507346991e5c286144fcbd04097@bellandwhistle.net>
[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]
On Fri, Apr 25, 2014 at 04:09:47PM -0700, alex@bellandwhistle.net wrote:
> >Andrew Ardill <andrew.ardill@gmail.com> writes:
> >
> >As a data point, I have seen people add ".gitignore" to their
> >.gitignore file, as they don't want to share the file.
>
> Right, I've seen that too.
That something I am actually doing in my projects, because I didn't
know they were other way to exclude files like .gitignore.
> It confused the heck out of me. It only lends
> credence to my point about the docs. Those users want the functionality of a
> pattern in '$GIT_DIR/info/exclude', but haven't been able to figure it out
> easily enough. They've just heard about .gitignore, so they're using that.
> Yes, it's all there in the docs if you read it several times, and you
> already know what you're looking at, but not in a terribly accessible, best
> practices, "advice from a smart friend who's been through it all already"
> kind of way.
Well documentation can be useful when you know what you're looking for,
but I won't go read it just for discovering new features I didn't know.
> Well, yes: semantics. Since they do slightly different things, they should
> have different names. It makes reference and teaching much easier. In fact,
> if a renaming were to occur, I would actually prefer even better semantics:
>
> .gitignore -> .shared-ignore
>
> $GIT_DIR/info/exclude -> $GIT_DIR/info/local-ignore
>
> These suggested names could perhaps be improved on. But if anything, the
> names need to be more different, not less. Users should be able to instantly
> know what a speaker is talking about without having to doublecheck and ask
> if by "git-ignore", the speaker really meant "git ignore" or
> "dot-gitignore".
I agree with a new name for .gitignore. A name like shared-ignore would
make explicite the fact it is shared, and then the user would look for
another way to locally exclude files. This would be a good approach, but
changing it won't be easy as most people already use .gitignore.
Would it be acceptable to have git display a warning when it detects
that .gitignore is excluding itself, with eventually a link to the
documentation or the path to $GIT_DIR/info/exclude ?
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2014-04-26 8:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 16:33 gitignore vs. exclude vs assume-unchanged? alex
2014-04-16 17:51 ` Junio C Hamano
2014-04-16 23:07 ` alex
2014-04-16 23:45 ` Jonathan Nieder
2014-04-18 0:36 ` alex
2014-04-22 0:40 ` Andrew Ardill
2014-04-22 17:54 ` Junio C Hamano
2014-04-25 23:09 ` alex
2014-04-26 7:52 ` luc.linux [this message]
2014-04-26 12:26 ` Zé
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=20140426075245.GA4123@luc-arch \
--to=luc.linux@mailoo.org \
--cc=alex@bellandwhistle.net \
--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;
as well as URLs for NNTP newsgroup(s).