Adding the logic to accept a command line flag for the branch to use to retrieve pages.

This commit is contained in:
Randy Merrill
2011-01-27 11:24:15 -08:00
parent f708dc7002
commit 3c44205be7
4 changed files with 33 additions and 12 deletions
+2 -2
View File
@@ -199,10 +199,10 @@ module Gollum
options[:pretty] = 'raw'
options.delete :max_count
options.delete :skip
log = @wiki.repo.git.native "log", options, "master", "--", @path
log = @wiki.repo.git.native "log", options, @wiki.branch, "--", @path
Grit::Commit.list_from_string(@wiki.repo, log)
else
@wiki.repo.log('master', @path, log_pagination_options(options))
@wiki.repo.log(@wiki.branch, @path, log_pagination_options(options))
end
end