git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* .gitignore Bug Report on the behavior of *
@ 2010-09-25 19:23 Seth Robertson
  2010-09-25 20:03 ` Johannes Sixt
  0 siblings, 1 reply; 5+ messages in thread
From: Seth Robertson @ 2010-09-25 19:23 UTC (permalink / raw)
  To: git


I'm not sure if this is a documentation bug, an actual bug, or my
mis-interpretation of what is supposed to happen, however, this
behavior was not expected by other people as well.  This was tested
using git 1.7.2.3 and 1.7.3

My sample configuration:
----------------------------------------------------------------------
mkdir foo; cd foo; git init; echo A > A; mkdir B; echo B > B/B
git add .; git commit -a -m "initial"
----------------------------------------------------------------------

# Properly shows X and B/XX as untracked, as I expected
echo X > X; echo XX > B/XX; git status

# I expected B/XX to show up as untracked
rm -f .gitignore B/.gitignore
echo '*' > .gitignore; echo '!*' > B/.gitignore; git status

# I expected B/XX to show up as untracked
rm -f .gitignore B/.gitignore
echo '/*' > .gitignore; git status

# Works as I expected
rm -f .gitignore B/.gitignore
echo '/*X' > .gitignore; git status

# Works as I expected
rm -f .gitignore B/.gitignore
echo '*X' > .gitignore; echo '!*X' > B/.gitignore; git status

# Works as I expected
rm -f .gitignore B/.gitignore
echo -e '/*\n!/B' > .gitignore; git status

					-Seth Robertson

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-25 23:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25 19:23 .gitignore Bug Report on the behavior of * Seth Robertson
2010-09-25 20:03 ` Johannes Sixt
2010-09-25 20:40   ` [PATCH] " Seth Robertson
2010-09-25 20:53   ` Ævar Arnfjörð Bjarmason
2010-09-25 23:27   ` Sverre Rabbelier

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).