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

Re: [PATCH] git-add: allow --ignore-missing always, not just in dry run

From
MGMike Gant <mwgant@gmail.com>
Date
Feb 7, 2012, 04:39 UTC
Message-ID
<20120207043909.GA16349@gantsfort.com>
In-Reply-To
<1326923544-8287-1-git-send-email-dieter@plaetinck.be>
On Wed, Jan 18, 2012 at 10:52:24PM +0100, Dieter Plaetinck wrote:
> There is no need to restrict use of --ignore-missing to dry runs,
> it can be useful to ignore missing files during normal operation as
> well.

FWIW I would be in favor of this change and I was going to submit a patch, too. My use case is different, though. I create branches that will never be merged to the mainline because they have files added that I don't want in master. The files added to these branches can vary. In my script to create the branch, I want the largest possible set of these files as the argument to 'git add' but if not all exist it's okay. I realize I can write my script to only add the files that exist but I'm lazy ;) and the --ignore-missing option would be easier.

Mike
Previous: Junio C Hamano
Message 10 of 10 in “git-add: allow --ignore-missing always, not just in dry run”
  1. git-add: allow --ignore-missing always, not just in dry runDieter Plaetinck, Jan 18, 2012
  2. Junio C HamanoJan 18, 2012
  3. Dieter PlaetinckJan 19, 2012
  4. Junio C HamanoJan 19, 2012
  5. Dieter PlaetinckJan 20, 2012
  6. Thomas RastJan 19, 2012
  7. Junio C HamanoJan 19, 2012
  8. Thomas RastJan 20, 2012
  9. Junio C HamanoJan 20, 2012
  10. Mike GantFeb 7, 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.