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

unnecessary check in builtin-add.c ?

From
YLYakov Lerner <iler.ml@gmail.com>
Date
Apr 25, 2007, 12:53 UTC
Message-ID
<f36b08ee0704250553w7ceee488y2586a5dccb62fe2c@mail.gmail.com>

At line 91 in fill_directory(), isn't this check unnecessary (91 if (pathspec)) because of earlier check at line 161 (if (argc <= i) ) ?

Yakov
Message 1 of 1 in “unnecessary check in builtin-add.c ?”
  1. Yakov LernerApr 25, 2007

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.