git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] cg-init should only process files

From
MWMorten Welinder <mwelinder@gmail.com>
Date
May 12, 2005, 16:37 UTC
Message-ID
<118833cc050512093750db7d55@mail.gmail.com>
In-Reply-To
<E1DWG9b-0001VV-V0@ash.dgreaves.com>
> -       find * | xargs cg-add
> +       find * -type f | xargs cg-add
I think we went through that a day or two ago:  Problems:
1. You forgot symlinks.
2. It does not work if nothing matches "*".  (Nor does the original.)
3. Either it should not match dotfiles in subdirectories, or else it
should match
   them in the top directory too.
4. With needs some -print0 and "--" protection.
Morten
Previous: David GreavesNext: David Greaves
Message 2 of 3 in “cg-init should only process files”
  1. cg-init should only process filesDavid Greaves, May 12, 2005
  2. Morten WelinderMay 12, 2005
  3. David GreavesMay 12, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.