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

[PATCH 0/3] Make "git add dir/" notice removed "dir/file"

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 9, 2013, 08:22 UTC
Message-ID
<1362817358-24356-1-git-send-email-gitster@pobox.com>

This resurrects an ancient stalled topic from last year, rebased on top of the recent "git add -u/-A" documentation updates 5cae93566027 (add: Clarify documentation of -A and -u, 2013-03-07) by Greg Price.

The first one is a pure clean-up. The second one is a preparatory step that can happen before Git 2.0 to prepare existing users to form a habit of saying "--all" (or "--no-all") explicitly when giving a directory name to "git add <pathspec>...".

Then the last one can be done in Git 2.0 to swap the default.
Junio C Hamano (3):
  builtin/add.c: simplify boolean variables
  git add: start preparing for "git add <pathspec>..." to default to "-A"
  git add <pathspec>... defaults to "-A"
 Documentation/git-add.txt | 22 +++++++++++++++++++---
 builtin/add.c             | 36 +++++++++++++++++++++++++-----------
 t/t2200-add-update.sh     |  6 +++---
 3 files changed, 47 insertions(+), 17 deletions(-)
-- 
1.8.2-rc3-203-gc9aaab5
Next: Junio C Hamano
Message 1 of 4 in “Make "git add dir/" notice removed "dir/file"”
  1. 0/3 Make "git add dir/" notice removed "dir/file"Junio C Hamano, Mar 9, 2013
  2. 1/3 builtin/add.c: simplify boolean variablesJunio C Hamano, Mar 9, 2013
  3. 2/3 git add: start preparing for "git add <pathspec>..." to default to "-A"Junio C Hamano, Mar 9, 2013
  4. 3/3 git add <pathspec>... defaults to "-A"Junio C Hamano, Mar 9, 2013

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.