Skip to content

Make "git add dir/" notice removed "dir/file"

Junio C Hamano git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3builtin/add.c: simplify boolean variablesbuiltin/add.c+11 -110 replies
2/3git add: start preparing for "git add <pathspec>..." to default to "-A"Documentation/git-add.txt builtin/add.c t/t2200-add-update.sh+59 -60 replies
3/3git add <pathspec>... defaults to "-A"Documentation/git-add.txt builtin/add.c+14 -370 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
1.8.2-rc3-203-gc9aaab5