1. 23 9月, 2006 4 次提交
  2. 22 9月, 2006 8 次提交
  3. 21 9月, 2006 7 次提交
    • P
      Fix showing of path in tree view · 16fdb488
      Petr Baudis 提交于
      This patch fixes two things - links to all path elements except the last
      one were broken since gitweb does not like the trailing slash in them, and
      the root tree was not reachable from the subdirectory view.
      
      To compensate for the one more slash in the front, the trailing slash is
      not there anymore. ;-) I don't care if it stays there though.
      Signed-off-by: NPetr Baudis <pasky@suse.cz>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      16fdb488
    • M
      gitweb: fix display of trees via PATH_INFO. · 053d62bb
      Martin Waitz 提交于
      When adding a / to the URL, git should display the corresponding
      tree object, but it has to remove the / first.
      Signed-off-by: NMartin Waitz <tali@admingilde.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      053d62bb
    • J
      gitweb: Fix thinko in git_tags and git_heads · 62e27f27
      Jakub Narebski 提交于
      git_get_refs_list always return reference to list (and reference to
      hash which we ignore), so $taglist (in git_tags) and $headlist (in
      git_heads) are always defined, but @$taglist / @$headlist might be
      empty. Replaced incorrect "if (defined @$taglist)" with
      "if (@$taglist)" in git_tags and respectively in git_heads.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      62e27f27
    • J
      gitweb: Make git_get_refs_list do work of git_get_references · 120ddde2
      Jakub Narebski 提交于
      Make git_get_refs_list do also work of git_get_references, to avoid
      calling git-peek-remote twice.  Change meaning of git_get_refs_list
      meaning: it is now type, and not a full path, e.g. we now use
      git_get_refs_list("heads") instead of former
      git_get_refs_list("refs/heads").
      
      Modify git_summary to use only one call to git_get_refs_list instead
      of one call to git_get_references and two to git_get_refs_list.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      120ddde2
    • J
      gitweb: Always use git-peek-remote in git_get_references · 9704d75d
      Jakub Narebski 提交于
      Instead of trying to read info/refs file, which might not be present
      (we did fallback to git-ls-remote), always use git-peek-remote in
      git_get_references.
      
      It is preparation for git_get_refs_info to also return references
      info.  We should not use info/refs for git_get_refs_info as the
      repository is not served for http-fetch clients.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9704d75d
    • J
      gitweb: Require project for almost all actions · d04d3d42
      Jakub Narebski 提交于
      Require that project (repository) is given for all actions except
      project_list, project_index and opml.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d04d3d42
    • J
      gitweb: Even more support for PATH_INFO based URLs · cd90e75f
      Jakub Narebski 提交于
      Now the following types of path based URLs are supported:
      
      * project              overview (summary) page of project
      * project/branch       shortlog of branch
      * project/branch:file  file in branch, blob_plain view
      * project/branch:dir/  directory listing of dir in branch, tree view
      
      The following shortcuts works (see explanation below):
      
      * project/branch:      directory listing of branch, main tree view
      * project/:file        file in HEAD (raw)
      * project/:dir/        directory listing of dir in HEAD
      * project/:            directory listing of project's HEAD
      
      We use ':' as separator between branch (ref) name and file name
      (pathname) because valid branch (ref) name cannot have ':' inside.
      This limit applies to branch name only. This allow for hierarchical
      branches e.g. topic branch 'topic/subtopic', separate remotes
      tracking branches e.g. 'refs/remotes/origin/HEAD', and discriminate
      between head (branch) and tag with the same name.
      
      Empty branch should be interpreted as HEAD.
      
      If pathname (the part after ':') ends with '/', we assume that pathname
      is name of directory, and we want to show contents of said directory
      using "tree" view. If pathname is empty, it is equivalent to '/' (top
      directory).
      
      If pathname (the part after ':') does not end with '/', we assume that
      pathname is name of file, and we show contents of said file using
      "blob_plain" view.
      
      Pathname is stripped of leading '/', so we can use ':/' to separate
      branch from pathname. The rationale behind support for PATH_INFO based
      URLs was to support project web pages for small projects: just create
      an html branch and then use an URL like
        http://nowhere.com/gitweb.cgi/project.git/html:/index.html
      The ':/' syntax allow for working links between .html files served
      in such way, e.g. <a href="main.html"> link inside "index.html"
      would get
        http://nowhere.com/gitweb.cgi/project.git/html:/main.html.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cd90e75f
  4. 20 9月, 2006 1 次提交
  5. 18 9月, 2006 2 次提交
  6. 17 9月, 2006 4 次提交
  7. 16 9月, 2006 2 次提交
    • J
      gitweb: Add link to "project_index" view to "project_list" page · 9d0734ae
      Jakub Narebski 提交于
      Add link to "project_index" view as [TXT] beside link to "opml" view,
      (which is marked by [OPML]) to "project_list" page.
      
      While at it add alternate links for "opml" and "project_list" to HTML
      header for "project_list" view.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9d0734ae
    • J
      gitweb: Allow for href() to be used for links without project param · a1565c44
      Jakub Narebski 提交于
      Make it possible to use href() subroutine to generate link with
      query string which does not include project ('p') parameter.
      href() used to add project=$project to its parameters, if it
      was not set (to be more exact if $params{'project'} was false).
      Now you can pass "project => undef" if you don't want for href()
      to add project parameter to query string in the generated link.
      
      Links to "project_list", "project_index" and "opml" (all related
      to list of all projects/all git repositories) doesn't need project
      parameter. Moreover "project_list" is default view (action) if
      project ('p') parameter is not set, just like "summary" is default
      view (action) if project is set; project list served as a kind
      of "home" page for gitweb instalation, and links to "project_list"
      view were done without specyfying it as an action.
      
      Convert remaining links (except $home_link and anchor links)
      to use href(); this required adding 'order => "o"' to @mapping
      in href(). This finishes consolidation of URL generation.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a1565c44
  8. 15 9月, 2006 3 次提交
    • J
      gitweb: Add git_project_index for generating index.aux · fc2b2be0
      Jakub Narebski 提交于
      Add git_project_index, which generates index.aux file that can be used
      as a source of projects list, instead of generating projects list from
      a directory.  Using file as a source of projects list allows for some
      projects to be not present in gitweb main (project_list) page, and/or
      correct project owner info. And is probably faster.
      
      Additionally it can be used to get the list of all available repositories
      for scripts (in easily parseable form).
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fc2b2be0
    • J
      gitweb: Do not parse refs by hand, use git-peek-remote instead · c83a77e4
      Jakub Narebski 提交于
      This is in response to Linus's work on packed refs. Additionally it
      makes gitweb work with symrefs, too.
      
      Do not parse refs by hand, using File::Find and reading individual
      heads to get hash of reference, but use git-peek-remote output
      instead.  Assume that the hash for deref (with ^{}) always follows hash
      for ref, and that we have derefs only for tag objects; this removes
      call to git_get_type (and git-cat-file -t invocation) for tags, which
      speeds "summary" and "tags" views generation, but might slow generation
      of "heads" view a bit.  For now, we do not save and use the deref hash.
      
      Remove git_get_hash_by_ref while at it, as git_get_refs_list was the
      only place it was used.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c83a77e4
    • J
      gitweb: Use File::Find::find in git_get_projects_list · c0011ff8
      Jakub Narebski 提交于
      Earlier code to get list of projects when $projects_list is a
      directory (e.g. when it is equal to $projectroot) had a hardcoded flat
      (one level) list of directories.  Allow for projects to be in
      subdirectories also for $projects_list being a directory by using
      File::Find.
      Signed-off-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c0011ff8
  9. 11 9月, 2006 2 次提交
  10. 05 9月, 2006 3 次提交
  11. 04 9月, 2006 1 次提交
  12. 01 9月, 2006 3 次提交