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

Re: automatically removing missing files beneath a directory

From
Geoffrey Irving <irving@naml.us>
Date
May 8, 2008, 17:19 UTC
Message-ID
<7f9d599f0805081019r16e3b6ahd14d55b7d32c6231@mail.gmail.com>
In-Reply-To
<20080508171843.GA29607@sigill.intra.peff.net>
On Thu, May 8, 2008 at 10:18 AM, Jeff King <peff@peff.net> wrote:
Show 26 quoted lines
> On Thu, May 08, 2008 at 10:12:56AM -0700, Geoffrey Irving wrote:
>
>> Cool.  "git add -u && git add ." does exactly what I want.
>>
>> This is only indirectly mentioned in the documentation.  If you think
>> it's reasonable to mention it more explicitly, I've attached a patch.
>
> Yeah, the term "update" is not really defined there. I actually prefer
> to mention it even earlier in the paragraph; does this make sense to
> you?
>
> diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
> index 35e67a0..e2389e3 100644
> --- a/Documentation/git-add.txt
> +++ b/Documentation/git-add.txt
> @@ -71,7 +71,9 @@ OPTIONS
>        the specified filepatterns before exiting.
>
>  -u::
> -       Update only files that git already knows about. This is similar
> +       Update only files that git already knows about, staging modified
> +       content for commit and marking deleted files for removal. This
> +       is similar
>        to what "git commit -a" does in preparation for making a commit,
>        except that the update is limited to paths specified on the
>        command line. If no paths are specified, all tracked files in the
Yep, that's better than mine.
Geoffrey
Previous: Jeff King
Message 5 of 5 in “automatically removing missing files beneath a directory”
  1. Geoffrey IrvingMay 8, 2008
  2. Jeff KingMay 8, 2008
  3. Geoffrey IrvingMay 8, 2008
  4. Jeff KingMay 8, 2008
  5. Geoffrey IrvingMay 8, 2008

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.