Gioele Barabucci <gioele@xxxxxxxxx> writes: > ... As you quoted, > >> If the pattern ends with a slash, it is removed for the purpose >> of the following description, but it would only find a match with >> a directory. In other words, foo/ will match a directory foo and >> paths underneath it But the "will match a directory foo and" part in that description, while makes it easier to read, is technically unnecessary and even misleading. The ignore patterns ultimately decides which paths are not to be added to the index. Colloquially we could say "foo directory is ignored", but such a statement is just a short-hand for "everything in foo is ignored"; technically "foo directory is ignored" is not necessary because we never add the directory itself to the index. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html