From: K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
To: nobozo@gmail.com
Cc: git@vger.kernel.org
Subject: Re Is Git Add Supposed to Work Like This (git 2.50)?
Date: Sun, 7 Sep 2025 13:40:14 +0530 [thread overview]
Message-ID: <20250907081014.17466-1-jayatheerthkulkarni2005@gmail.com> (raw)
In-Reply-To: <63045080-74d6-4835-9d9c-4d3558acdbfb@gmail.com>
To answer very shortly, "It is intended"
Reason:
I don't exactly know if I am pointing to the right code lines
But if you dig into builtin/add.c you will find these lines
/*
* Check the "pathspec '%s' did not match any files" block
* below before enabling new magic.
*/
parse_pathspec(&pathspec, 0,
PATHSPEC_PREFER_FULL |
PATHSPEC_SYMLINK_LEADING_PATH,
prefix, argv);
If you read the comment you will know this
is already intented (the behaviour which you described)
- Jayatheerth
next prev parent reply other threads:[~2025-09-07 8:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-07 2:02 Is Git Add Supposed to Work Like This (git 2.50)? Jon Forrest
2025-09-07 8:10 ` K Jayatheerth [this message]
2025-09-07 23:34 ` Jeff King
2025-09-09 16:00 ` Jon Forrest
2025-09-09 18:33 ` Jon Forrest
2025-09-09 18:42 ` Jeff King
2025-09-09 20:55 ` Junio C Hamano
2025-09-09 21:01 ` Jeff King
2025-09-09 18:40 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250907081014.17466-1-jayatheerthkulkarni2005@gmail.com \
--to=jayatheerthkulkarni2005@gmail.com \
--cc=git@vger.kernel.org \
--cc=nobozo@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox