Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [1.8.0] Unify "pathspec" semantics

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:50:29

On Tue, Feb 1, 2011 at 12:07 AM, Junio C Hamano [off-list ref] wrote:
Some projects may track a file whose name is asterisk (e.g. "foo/*") and
output from "git log 'foo/*'" would look different.  Before the change,
only commits that touch that exact path would be shown, but after the
change, any commit that touch a path underneath "foo/" directory will be
shown.  This is a backward incompatible change.
Can we support quoting wildcards? I can imagine a file name such as
'***DO NOT DO IT***'. People who wish to match exactly that file would
have hard time ahead without a way to tell git those stars are
literal.

A prefix/special leading symbol or cmdline option to indicate the
given pathspec is literal is fine too (e.g "!literal:***hey***" or
--literal "***hey***"). In fact I can extend that to support negative
pathspecs.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help