Permalink
Browse files

cleaned _ directoried from page list and sorted page list

  • Loading branch information...
schacon committed Apr 21, 2008
1 parent 22cf4df commit d294bebf8a4b9364727d472560fb8cf7bf553c47
Showing with 2 additions and 1 deletion.
  1. +2 −1 git-wiki.rb
View
@@ -59,7 +59,8 @@
# application paths (/a/ namespace)
get '/a/list' do
- @pages = $repo.log.first.gtree.children.map { |name, blob| Page.new(name) } rescue []
+ pages = $repo.log.first.gtree.children
+ @pages = pages.select { |f,bl| f[0,1] != '_'}.sort.map { |name, blob| Page.new(name) } rescue []
show(:list, 'Listing pages')
end

0 comments on commit d294beb

Please sign in to comment.