git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFD] Place to document magic pathspecs like ":/" and pathspec handling
@ 2016-06-29 19:47 Jakub Narębski
  2016-06-29 19:51 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Jakub Narębski @ 2016-06-29 19:47 UTC (permalink / raw)
  To: git

Hello,

123456789012345678901234567890123456789012345678901234567890123456789012345|

I have noticed that the magic pathspec ":/" is described only in RelNotes
for revision 1.7.6:

|* A magic pathspec ":/" tells a command that limits its operation to the current directory when ran from a subdirectory to work on the entire working tree. In general, ":/path/to/file" would be relative to the root of the working tree hierarchy. After "git reset --hard; edit Makefile; cd t/", "git add -u" would be a no-op, but "git add -u :/" would add the updated contents of the Makefile at the top level. If you want to name a path in the current subdirectory whose unusual name begins with ":/", you can name it by "./:/that/path" or by "\:/that/path".|

||
|I think the reason might be that there was no good place to put that
information in.  Nowadays we have gitcli(7) manual page, but perhaps
it would be better to create a separate manpage for issues related
to pathspec handling (of which ":/" is only one part)... but then
what should it be named?

What do you think?
-- 
Jakub Narębski
|||


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-01 13:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-29 19:47 [RFD] Place to document magic pathspecs like ":/" and pathspec handling Jakub Narębski
2016-06-29 19:51 ` Junio C Hamano
2016-06-29 21:22   ` Jakub Narębski
2016-06-29 21:28     ` Junio C Hamano
2016-06-30  9:42       ` Jakub Narębski
2016-06-30 15:14         ` Duy Nguyen
2016-07-01  6:42           ` Jeff King
2016-07-01 13:17             ` Jakub Narębski

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 NNTP newsgroup(s).