From: Dennis Kaarsemaker <dennis@kaarsemaker.net>
To: Nathan Williams <nwilliams@sofi.org>, git@vger.kernel.org
Cc: Eric Severtson <esevertson@sofi.org>
Subject: Re: Git Ignore Exception bug
Date: Wed, 14 Sep 2016 13:26:16 +0200 [thread overview]
Message-ID: <1473852376.30531.20.camel@kaarsemaker.net> (raw)
In-Reply-To: <CAC5iUd2mS1n1=sRB=Bs6tn3L3raAXrZaEcs765UFtQZB9XZuYg@mail.gmail.com>
On vr, 2016-09-09 at 15:39 -0600, Nathan Williams wrote:
> it ignore doesn't seem to be working properly when adding exceptions.
>8 -- snip testcase
> Expected results
> % git st
> On branch master
> Untracked files:
> (use "git add <file>..." to include in what will be committed)
>
> foo/bar/
That expectation is wrong, it should show foo/. And indeed it does
(tested with 2.9.0 and 2.10.0-rc1)
$ sh -x testscript
+ rm -rf repo
+ mkdir repo
+ cd repo
+ git init
Initialized empty Git repository in /home/dennis/code/git/repo/.git/
+ echo foo/*
+ echo !foo/bar
+ git add .gitignore
+ git commit -m Ignore file with exceptions
[master (root-commit) 7e1b82a] Ignore file with exceptions
1 file changed, 2 insertions(+)
create mode 100644 .gitignore
+ mkdir foo
+ mkdir foo/bar
+ touch foo/1
+ touch foo/2
+ touch foo/bar/a
+ touch foo/bar/b
+ git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
foo/
nothing added to commit but untracked files present (use "git add" to track)
--
Dennis Kaarsemaker
http://www.kaarsemaker.net
prev parent reply other threads:[~2016-09-14 11:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 21:39 Git Ignore Exception bug Nathan Williams
2016-09-14 11:26 ` Dennis Kaarsemaker [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=1473852376.30531.20.camel@kaarsemaker.net \
--to=dennis@kaarsemaker.net \
--cc=esevertson@sofi.org \
--cc=git@vger.kernel.org \
--cc=nwilliams@sofi.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).