Match only top level files

John Lawlor jk.lawlor at gmail.com
Wed Apr 12 08:30:24 UTC 2017


Hi,

I have this regex:

match /Labs/ChattyApps/(.*.project|build.xml?)$
  repository /Labs/ChattyApps
  branch master
  prefix \1
end match

This descends into each folder and matches .project within each, and builds
the folder structure above the .project file. So the ChattyApps directory
has the two files I wanted: build.xml and .project, but it also has 5
folders I don't want, because these folders contain .project files.

Is there a way to just match the two files in the root directory: .project
and build.xml and don't descend into any other folders to find other
.project/build.xml matches?

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-scm-interest/attachments/20170412/f96f6eae/attachment.html>


More information about the Kde-scm-interest mailing list