Re: [git-users] .gitignore question

2013-11-15 Thread Edwin Castro
On 11/13/13, 6:15 AM, wtriker@gmail.com wrote:
 'someupper path/system/cache' and all start with 'cache.'

Sounds like you want to match any number of directories prior to the
system directory. Try this pattern:

**/system/cache/cache.*

--
Edwin

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] .gitignore question

2013-11-14 Thread Dale R. Worley
 From: wtriker@gmail.com
 
 I have some files that I want to ignore but can't seem to come up with the 
 correct format. There are multiple sub-directories with the same path that 
 I want to ignore. Specifically, the are 'someupper path/system/cache' and 
 all start with 'cache.'. The .gitignore entry I am using is:
 
 system/cache/cache.*
 
 But that does not work. What is the correct syntax to ignore these files? 

One solution is to put cache in each someupper
path/system/.gitignore file.

I would start by reading the rules for how gitignore entries are
interpreted, which is in the gitignore manual page.  In particular,
I see:

   Two consecutive asterisks (**) in patterns matched against full
   pathname may have special meaning:

   ·   A leading ** followed by a slash means match in all directories.
   For example, **/foo matches file or directory foo anywhere, the
   same as pattern foo. **/foo/bar matches file or directory bar
   anywhere that is directly under directory foo.

This suggests the answer is to put **/system/cache in the top-level
.gitignore file.

Dale

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[git-users] .gitignore question

2013-11-13 Thread wtriker . ffe
I have some files that I want to ignore but can't seem to come up with the 
correct format. There are multiple sub-directories with the same path that 
I want to ignore. Specifically, the are 'someupper path/system/cache' and 
all start with 'cache.'. The .gitignore entry I am using is:

system/cache/cache.*

But that does not work. What is the correct syntax to ignore these files? 
TIA.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [git-users] .gitignore question

2013-11-13 Thread William Seiti Mizuta
Can you ignore all subdirectories inside cache directory? If so, just write

cache

in your .gitignore file. Git will ignore all cache directories
independently where it was. It can be in project root or inside a directory.


William Seiti Mizuta
@williammizuta
Caelum | Ensino e Inovação
www.caelum.com.br


On Wed, Nov 13, 2013 at 11:15 AM, wtriker@gmail.com wrote:

 I have some files that I want to ignore but can't seem to come up with the
 correct format. There are multiple sub-directories with the same path that
 I want to ignore. Specifically, the are 'someupper path/system/cache' and
 all start with 'cache.'. The .gitignore entry I am using is:

 system/cache/cache.*

 But that does not work. What is the correct syntax to ignore these files?
 TIA.

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.