Thread (4 messages) 4 messages, 3 authors, 2016-06-15

Re: git --literal-pathspecs add -u says "fatal: pathspec ':/' did not match any files"

From: Noam Postavsky <hidden>
Date: 2016-06-15 23:07:02

On Sat, Oct 24, 2015 at 3:13 AM, Victor Leschuk [off-list ref] wrote:
The problem is that in the absence of explicit argument we set the list of
files to special path ":/" which means repo root:
And after that we treat it as regular file
Aha.
Maybe it'll make sense to modify file_exists() to treat ":/" specially.
I'm not sure how this would translate into code, but it would make
more sense to me if we undo the effect of --literal-pathspecs when
setting arguments to ":/". After all, it's obviously not meant to be a
literal file so it shouldn't treated as one (also this way still
allows a user to pass --literal-pathspecs with ":/" to add an actual
directory named ":" (not that anyone should ever want that)).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help