From: Damien Wyart <damien.wyart@gmail.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: Bastien <bzg@gnu.org>, Andreas Schwab <schwab@suse.de>,
Richard Stallman <rms@gnu.org>,
emacs-devel@gnu.org
Subject: Re: When was a change installed?
Date: Wed, 19 Aug 2015 12:16:32 +0200 [thread overview]
Message-ID: <20150819101632.GA32499@brouette> (raw)
In-Reply-To: <877forlhww.fsf@gmx.net>
> > > $ git grep lax-whitespace */ChangeLog*
> > > without the single quotes works for me.
> > That's not the same, as the glob is expanded by the shell before git
> > can see it.
* Stephen Berman <stephen.berman@gmx.net> [2015-08-19 11:57]:
> The error message by git, which I also get on invoking
> git grep lax-whitespace '*/ChangeLog.*'
> says "Use '--' to separate paths from revisions, like this: 'git
> <command> [<revision>...] -- [<file>...]'", and indeed, when I run
> git grep lax-whitespace -- '*/ChangeLog.*'
> it outputs 26 matching lines. Invoking
> git grep lax-whitespace */ChangeLog*
> outputs only 25 of thos lines, all from lisp/; missing is
> "doc/emacs/ChangeLog.1: (Replace): Document replace-lax-whitespace."
> which the other output contains.
> So you're right there's a difference, but apparently the '--' is necessary.
I guess Andreas is using git 2.5.0, where '--' is not necessary anymore
in this case.
Here is the corresponding item from the release notes:
,----
| * A heuristic we use to catch mistyped paths on the command line
| "git <cmd> <revs> <pathspec>" is to make sure that all the non-rev
| parameters in the later part of the command line are names of the
| files in the working tree, but that means "git grep $str -- \*.c"
| must always be disambiguated with "--", because nobody sane will
| create a file whose name literally is asterisk-dot-see. Loosen the
| heuristic to declare that with a wildcard string the user likely
| meant to give us a pathspec.
`----
--
Damien
next prev parent reply other threads:[~2015-08-19 10:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1ZRCad-0000hK-Ta@fencepost.gnu.org>
[not found] ` <mvmpp2mgyz0.fsf@hawking.suse.de>
2015-08-18 3:42 ` When was a change installed? Richard Stallman
2015-08-18 14:10 ` Alan Mackenzie
2015-08-19 6:38 ` Steinar Bang
2015-08-19 18:16 ` Richard Stallman
2015-08-18 14:18 ` Andreas Schwab
2015-08-19 1:19 ` Richard Stallman
2015-08-19 4:28 ` David Kastrup
2015-08-19 18:18 ` Richard Stallman
2015-08-20 2:37 ` Stefan Monnier
2015-08-19 1:19 ` Richard Stallman
2015-08-19 7:52 ` Andreas Schwab
2015-08-19 18:18 ` Richard Stallman
2015-08-19 9:22 ` Bastien
2015-08-19 9:25 ` Andreas Schwab
2015-08-19 9:57 ` Stephen Berman
2015-08-19 10:16 ` Damien Wyart [this message]
2015-08-18 14:28 ` Tassilo Horn
2015-08-19 1:24 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150819101632.GA32499@brouette \
--to=damien.wyart@gmail.com \
--cc=bzg@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
--cc=schwab@suse.de \
--cc=stephen.berman@gmx.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).