From: Junio C Hamano <gitster@pobox.com>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: git grep failure?
Date: Thu, 19 Mar 2026 10:24:00 -0700 [thread overview]
Message-ID: <xmqqtsublolr.fsf@gitster.g> (raw)
In-Reply-To: <7e8159fb-f7ff-41f0-8955-5ed2dd5dc7fe@infradead.org> (Randy Dunlap's message of "Thu, 19 Mar 2026 09:47:24 -0700")
Randy Dunlap <rdunlap@infradead.org> writes:
> (/me notes that git am and git apply are different in this regard.)
Yup, consider that "git apply" without "--index" is a mere "make
goodness invented for Git available outside Git, as a replacement
for 'patch'", just like "git diff --no-index" is a mere "make
goodness invented for git-diff available outside Git, as a
replacement for 'diff'". Their primary value is that they work
outside the context of Git without relying on a Git repository, but
they have limitations for not relying on a Git repository and data.
There are better alternatives (i.e., "apply" with "--index", or
"am"; "diff" without "--no-index") if you are working with Git.
next prev parent reply other threads:[~2026-03-19 17:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-18 23:28 git grep failure? Randy Dunlap
2026-03-19 0:38 ` Jeff King
2026-03-19 4:42 ` Randy Dunlap
2026-03-19 5:16 ` Junio C Hamano
2026-03-19 15:53 ` Jeff King
2026-03-19 16:47 ` Randy Dunlap
2026-03-19 17:24 ` Junio C Hamano [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-08-21 3:32 Wayne Walker
2019-08-21 4:04 ` Wayne Walker
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=xmqqtsublolr.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=rdunlap@infradead.org \
/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