nelsnelson / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Feature: Directory color override files color for --hide files #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm generating a daily-activity "cloud view" with a custom format. At the end 
of each day I add a modify for each modified directory with a color based on 
the daily activity. This has a diminishing effect the more files exist under a 
directory.

E.g.

1234|A|dir|00FFFF
1234|A|dir/file1|00FF00
1234|A|dir/file2|00FF00
...
1234|A|dir/file99|00FF00
86399|M|dir|00FFFF|end of day1
87400|D|dir/file99|FF0000
172800|M|dir|FF0000|end of day2

Because 98 of the files under dir are 00FF00, dirs entry shows as 00FF00 
despite the directory modification entry.

Original issue reported on code.google.com by kfs...@gmail.com on 8 Aug 2010 at 6:30

GoogleCodeExporter commented 8 years ago
Gource kind of assumes every entry is a file. If it detects something it 
thought was a file is actually a directory, the 'file' gets silently removed 
(ie the file for 'dir' would be removed when the dir/file1 is encountered).

I can kind of see what you're trying to do though I'm not sure there's an 
elegant way to fit it in with how Gource actually works.

Original comment by acaudw...@gmail.com on 9 Aug 2010 at 12:30

GoogleCodeExporter commented 8 years ago
I've ensured that all of my folders have a trailing slash. I'll look at the 
code and see if I can maybe add an option that detects this and adds an extra 
bloom for the folder that encompases the files; thus if you are showing files, 
you'd have an ambient bloom set behind the files. If the files are hidden, 
you'd get the two colors blended.

Original comment by kfs...@gmail.com on 9 Aug 2010 at 8:41