gitweb: Split body of git_search into subroutines
commit16f20725bbcb7abbbc11e740050197b7fe8f843a
authorJakub Narebski <jnareb@gmail.com>
Wed, 22 Jun 2011 15:28:53 +0000 (22 17:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2011 18:44:33 +0000 (22 11:44 -0700)
treee8c273185acaa3af362816844f8cb0f58f7a1ba1
parente0ca364551fcde3b3d825f93f4a4d44d7ab9eb35
gitweb: Split body of git_search into subroutines

Create separate subroutines for handling each of aspects of searching
the repository:

 * git_search_message ('commit', 'author', 'committer')
 * git_search_changes ('pickaxe')
 * git_search_content_of_files ('grep')

Almost pure code movement (and unindent), which you can check e.g. via

  $ git blame -w --date=short -C -C HEAD^..HEAD -- gitweb/gitweb.perl |
    grep -C 3 -e '^[^^]' | less -S

No functional changes intended.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl