mbox series

[v3,0/3] commit, add: error out when passing untracked paths

Message ID 20240402213640.139682-2-shyamthakkar001@gmail.com (mailing list archive)
Headers show
Series commit, add: error out when passing untracked paths | expand

Message

Ghanshyam Thakkar April 2, 2024, 9:36 p.m. UTC
This version uses Junio's patch ,which adds a new .ps_matched member to
'strcut rev_info' to record the pathspec elements that matched tracked
paths, as base for patch [2/3] and [3/3]. 

Patch [2/3] remains unchanged from v2. And patch [3/3] is updated
according to Junio's suggestions.

Ghanshyam Thakkar (2):
  builtin/commit: error out when passing untracked path with -i
  builtin/add: error out when passing untracked path with -u

Junio C Hamano (1):
  revision: optionally record matches with pathspec elements

 builtin/add.c                         | 13 +++++++++++--
 builtin/checkout.c                    |  3 ++-
 builtin/commit.c                      |  9 ++++++++-
 diff-lib.c                            | 11 ++++++++++-
 read-cache-ll.h                       |  4 ++--
 read-cache.c                          |  8 +++++---
 revision.h                            |  1 +
 t/t2200-add-update.sh                 | 10 ++++++++++
 t/t7501-commit-basic-functionality.sh | 16 +---------------
 9 files changed, 50 insertions(+), 25 deletions(-)