D5493: match: support rooted globs in hgignore

valentin.gatienbaron (Valentin Gatien-Baron) phabricator at mercurial-scm.org
Tue Jan 15 23:57:24 EST 2019


valentin.gatienbaron added a comment.


  Sorry, it took me a while to come back to this. I renamed the syntax to rootglob.
  
  I haven't handled your other remark, however I noticed that globs in .gitignore can be rooted [1]. I had looked for a precedent for syntax for rooting a glob last week without success. Now that I see this, their choice looks sensible enough to me, so I think I'll try that, as I think that'd be nicer overall, and easier to implement (and side-step your remark about abusing the glob syntax).
  
  [1] From https://git-scm.com/docs/gitignore: A leading slash matches the beginning of the pathname. For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5493

To: valentin.gatienbaron, #hg-reviewers
Cc: yuja, foozy, mercurial-devel


More information about the Mercurial-devel mailing list