emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When was a change installed?


From: Stephen Berman
Subject: Re: When was a change installed?
Date: Wed, 19 Aug 2015 11:57:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

On Wed, 19 Aug 2015 11:25:10 +0200 Andreas Schwab <address@hidden> wrote:

> Bastien <address@hidden> writes:
>
>> $ 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.

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.

Steve Berman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]