Re: [fossil-users] 'ignore-glob' (wildcard) syntax

2013-12-28 Thread Stephan Beal
On Sat, Dec 28, 2013 at 2:16 PM, Michai Ramakers m.ramak...@gmail.comwrote:

 I find myself searching for a description of the exact syntax of the
 'ignore-glob' setting every time I use it - in particular, use of
 wildcards to specify 'a single subdir', 'a number of subdirs', and
 possibly grouping like sh's {..,..}.


 Is this documented somewhere?


Hi, Michai,

It is documented, but not somewhere where the average user will find it:

http://fossil-scm.org/index.html/artifact/968a3f5b9e203af3053939639533ee7b26259836?ln=143-157

In brief: it's a subset of Unix shell globbing rules, but not including
{a,b,c} globs.

Fossil doesn't generally know about/do anything special for directories.
e.g. it cannot version control a directory, only files. Thus many commands
do not operate at the directory level (as you've already noticed). AFAIK,
there are no wildcards which restrict behaviour to a specific subdir, and
i'm not certain if the following (or something similar) would work for the
ignore-glob:

temp/*

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do. -- Bigby Wolf
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] 'ignore-glob' (wildcard) syntax

2013-12-28 Thread Michai Ramakers
On 28 December 2013 14:48, Stephan Beal sgb...@googlemail.com wrote:
 On Sat, Dec 28, 2013 at 2:16 PM, Michai Ramakers m.ramak...@gmail.com
 wrote:

 I find myself searching for a description of the exact syntax of the
 'ignore-glob' setting every time I use it - in particular, use of
 wildcards to specify 'a single subdir', 'a number of subdirs', and
 possibly grouping like sh's {..,..}.


 Is this documented somewhere?


 Hi, Michai,

 It is documented, but not somewhere where the average user will find it:

 http://fossil-scm.org/index.html/artifact/968a3f5b9e203af3053939639533ee7b26259836?ln=143-157

I had to laugh a bit, thank you for that :)
But ok, without looking at the code hard, I conclude that a file/path
is passed in as opaque string, and matched against the glob. So '*'
will cross directory-boundaries ('/') in the file-/path-name.

I'm not sure what would happen for multiple '*' in a glob-string, but
I think there are no use-cases for that, at least not here.

 AFAIK,
 there are no wildcards which restrict behaviour to a specific subdir, and
 i'm not certain if the following (or something similar) would work for the
 ignore-glob:

 temp/*

Right. I just tried that here; in my head it should work, and indeed
it does (i.e. files in 'temp' are ignored for e.g. the 'extra'
command).

Thanks for the clue,

Michai
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] 'ignore-glob' (wildcard) syntax

2013-12-28 Thread Martin Gagnon
On Sat, Dec 28, 2013 at 03:11:32PM +0100, Michai Ramakers wrote:
 On 28 December 2013 14:48, Stephan Beal sgb...@googlemail.com wrote:
  On Sat, Dec 28, 2013 at 2:16 PM, Michai Ramakers m.ramak...@gmail.com
  wrote:

[snip]

 
 I'm not sure what would happen for multiple '*' in a glob-string, but
 I think there are no use-cases for that, at least not here.
 
  AFAIK,
  there are no wildcards which restrict behaviour to a specific subdir, and
  i'm not certain if the following (or something similar) would work for the
  ignore-glob:
 
  temp/*
 
 Right. I just tried that here; in my head it should work, and indeed
 it does (i.e. files in 'temp' are ignored for e.g. the 'extra'
 command).
 

Multiple '*' work and in my case I use that:
*/obj/*

per example.

Any subdir 'obj' in the repo will have it contents ignored.

-- 
Martin G.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] 'ignore-glob' (wildcard) syntax

2013-12-28 Thread Michai Ramakers
On 28 December 2013 15:16, Martin Gagnon eme...@gmail.com wrote:

 Multiple '*' work and in my case I use that:
 */obj/*

 per example.

 Any subdir 'obj' in the repo will have it contents ignored.

d'oh, that's useful indeed, thx.

Michai
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users