]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'gt/add-u-commit-i-pathspec-check'
authorJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2024 21:11:43 +0000 (14:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2024 21:11:43 +0000 (14:11 -0700)
commitd75ec4c62715fd768a56523f714fe9ecd2b1abb3
tree0c14da40b63504b40b957f08eaf06ae37fa8c318
parent6c142bc8461b557d88fde0be28faac76ad78053a
parent7de13cfef3042478223012841e07cd91d7234d22
Merge branch 'gt/add-u-commit-i-pathspec-check'

"git add -u <pathspec>" and "git commit [-i] <pathspec>" did not
diagnose a pathspec element that did not match any files in certain
situations, unlike "git add <pathspec>" did.

* gt/add-u-commit-i-pathspec-check:
  builtin/add: error out when passing untracked path with -u
  builtin/commit: error out when passing untracked path with -i
  revision: optionally record matches with pathspec elements
builtin/add.c
builtin/checkout.c
builtin/commit.c