git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git glob pattern in .gitignore and git command
@ 2018-06-03  0:58 Yubin Ruan
  2018-06-03 17:34 ` Philip Oakley
  2018-06-03 17:43 ` Duy Nguyen
  0 siblings, 2 replies; 3+ messages in thread
From: Yubin Ruan @ 2018-06-03  0:58 UTC (permalink / raw)
  To: git; +Cc: Geekaholic

To ignore all .js file under a directory `lib', I can use "lib/**/js" to match
them. But when using git command such as "git add", using "git add lib/\*.js"
is sufficient. Why is this difference in glob mode?

I have heard that there are many different glob mode out there (e.g., bash has
many different glob mode). So, which classes of glob mode does these two
belong to? Do they have a name?

Yubin

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

end of thread, other threads:[~2018-06-03 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-03  0:58 git glob pattern in .gitignore and git command Yubin Ruan
2018-06-03 17:34 ` Philip Oakley
2018-06-03 17:43 ` Duy Nguyen

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