From bug 38214 comment 4:
I need it to only show the categories
containing pages, not all the categories. See:
*http://commons.wikimedia.org/wiki/User:Timeshifter/Sandbox_8
*http://commons.wikimedia.org/w/index.php?title=Special%3ACategoryTree&target=Astronomy&mode=pages&dotree=Show+tree
I suspect this might be very difficult or impossible because to know whether to include a category you'd have to explore all its subcategories.
Bug 17117 might be a duplicate but is unclear.
Version: master
Severity: enhancement