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

Re: Don't share anything but those files

From
Taylor Hedberg <tmhedberg@gmail.com>
Date
Jul 13, 2012, 17:53 UTC
Message-ID
<20120713175306.GB30723@euporie>
In-Reply-To
<50005DA8.5020803@modusfx.com>
Yves Perron, Fri 2012-07-13 @ 13:40:56-0400:
> Ok, let me rephrase, is there a way to edit a file where we can put
> every files/folders we need to add without the need of entering a
> command for each entry?

Sure, but you don't need functionality built in to Git to do this. Just list the paths you want to add in a file and then:

    xargs git add <filename

But you only have to do this once, so I'm not really sure what that buys you.

You can use glob patterns to select groups of files to add as well, if there is some similarity in the pathnames.

Previous: Yves Perron
Message 8 of 8 in “Don't share anything but those files”
  1. Yves PerronJul 13, 2012
  2. Edward ToroshchinJul 13, 2012
  3. Illia BobyrJul 13, 2012
  4. Yves PerronJul 13, 2012
  5. Yves PerronJul 16, 2012
  6. Edward ToroshchinJul 13, 2012
  7. Yves PerronJul 13, 2012
  8. Taylor HedbergJul 13, 2012

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.