* info/exclude not working
@ 2013-06-03 20:04 Devin Rhode
2013-06-03 20:32 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Devin Rhode @ 2013-06-03 20:04 UTC (permalink / raw)
To: git
For some reason info/exclude hasn't been working for me. I have a
pretty plain macbook pro, with a slow standard hard drive, running the
latest mac os 10.7 lion
MBP:dish devin$ pwd
/Users/devin/Dropbox/ads-G2/dish
MBP:dish devin$ cat ../.git/info/exclude
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
models/CAFE.json
dish/models/CAFE.json
MBP:dish devin$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: models/CAFE.json ***Shouldn't appear
# modified: page_0.ejs
# modified: page_0.xml
# modified: page_1.ejs
# modified: page_1.xml
#
no changes added to commit (use "git add" and/or "git commit -a")
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: info/exclude not working
2013-06-03 20:04 info/exclude not working Devin Rhode
@ 2013-06-03 20:32 ` Jeff King
2013-06-03 20:44 ` Devin Rhode
0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2013-06-03 20:32 UTC (permalink / raw)
To: Devin Rhode; +Cc: git
On Mon, Jun 03, 2013 at 01:04:39PM -0700, Devin Rhode wrote:
> MBP:dish devin$ cat ../.git/info/exclude
> # git ls-files --others --exclude-from=.git/info/exclude
> # Lines that start with '#' are comments.
> # For a project mostly in C, the following would be a good set of
> # exclude patterns (uncomment them if you want to use them):
> # *.[oa]
> # *~
> models/CAFE.json
> dish/models/CAFE.json
>
> MBP:dish devin$ git status
> # On branch master
> # Changes not staged for commit:
> # (use "git add <file>..." to update what will be committed)
> # (use "git checkout -- <file>..." to discard changes in working directory)
> #
> # modified: models/CAFE.json ***Shouldn't appear
The exclude mechanism does not mean "do not ever look at this file". It
means "when you are adding untracked files, do not include this one".
Somebody has already added the file to the repository before your
exclude was in place, so it is a tracked file.
There is currently no official mechanism in git to do what you want
(there are some hacks, but they include many pitfalls).
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: info/exclude not working
2013-06-03 20:32 ` Jeff King
@ 2013-06-03 20:44 ` Devin Rhode
0 siblings, 0 replies; 3+ messages in thread
From: Devin Rhode @ 2013-06-03 20:44 UTC (permalink / raw)
To: Jeff King; +Cc: Devin Rhode, git
I wouldn't worry too much about this use case, we have a pretty lame workflow
On Mon, Jun 3, 2013 at 1:32 PM, Jeff King <peff@peff.net> wrote:
> On Mon, Jun 03, 2013 at 01:04:39PM -0700, Devin Rhode wrote:
>
>> MBP:dish devin$ cat ../.git/info/exclude
>> # git ls-files --others --exclude-from=.git/info/exclude
>> # Lines that start with '#' are comments.
>> # For a project mostly in C, the following would be a good set of
>> # exclude patterns (uncomment them if you want to use them):
>> # *.[oa]
>> # *~
>> models/CAFE.json
>> dish/models/CAFE.json
>>
>> MBP:dish devin$ git status
>> # On branch master
>> # Changes not staged for commit:
>> # (use "git add <file>..." to update what will be committed)
>> # (use "git checkout -- <file>..." to discard changes in working directory)
>> #
>> # modified: models/CAFE.json ***Shouldn't appear
>
> The exclude mechanism does not mean "do not ever look at this file". It
> means "when you are adding untracked files, do not include this one".
> Somebody has already added the file to the repository before your
> exclude was in place, so it is a tracked file.
>
> There is currently no official mechanism in git to do what you want
> (there are some hacks, but they include many pitfalls).
>
> -Peff
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-03 20:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-03 20:04 info/exclude not working Devin Rhode
2013-06-03 20:32 ` Jeff King
2013-06-03 20:44 ` Devin Rhode
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).