]> Lady’s Gitweb - Gitweb/log
Gitweb
30 hours agogitweb: Headers refactoring - use git_header_div for header divs
Jakub Narebski [Sun, 30 Jul 2006 18:32:01 +0000 (20:32 +0200)]
gitweb: Headers refactoring - use git_header_div for header divs

Add git_header_div subroutine which prints "header" divs, now with
class "header" (class "title" is taken, and has set CSS style,
changing appereance and maing layout wrong), and use it thorough
gitweb.cgi.  Change header linking to project summary from empty
(  as a contents of link) to having $project as contents/name
of link.  Sometimes a little reordering.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
30 hours agogitweb: Remove $project from git_get_paging_nav arguments
Jakub Narebski [Sun, 30 Jul 2006 18:31:00 +0000 (20:31 +0200)]
gitweb: Remove $project from git_get_paging_nav arguments

Remove $project from arguments passed to git_get_paging_nav
subroutine: it did not depend only on arguments, using $my_uri global
variable (and now $project global variable).

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
30 hours agogitweb: Pager refactoring - use git_get_paging_nav for pagination
Jakub Narebski [Sun, 30 Jul 2006 15:49:00 +0000 (17:49 +0200)]
gitweb: Pager refactoring - use git_get_paging_nav for pagination

Add git_get_paging_nav subroutine which returns string with pager
(paging nav) for shortlog and log actions.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
30 hours agogitweb: Add "\n" after <br/> in git_page_nav
Jakub Narebski [Sun, 30 Jul 2006 14:14:43 +0000 (16:14 +0200)]
gitweb: Add "\n" after <br/> in git_page_nav

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
30 hours agogitweb: Show project descriptions with utf-8 characters in project list correctly
Jakub Narebski [Sun, 30 Jul 2006 15:47:22 +0000 (17:47 +0200)]
gitweb: Show project descriptions with utf-8 characters in project list correctly

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
30 hours agogitweb: Replace form-feed character by ^L
Jakub Narebski [Sun, 30 Jul 2006 13:02:27 +0000 (15:02 +0200)]
gitweb: Replace form-feed character by ^L

Replace FORM FEED (FF) character (014, 12, 0xc) by it's textual
representation '^L'.  This character is used for example in GNU GPL
'COPYING' file.  With this patch "blob" output for COPYING passes
XHTML validation.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Navbar refactoring - use git_page_nav to generate navigation bar
Jakub Narebski [Sun, 30 Jul 2006 13:01:07 +0000 (15:01 +0200)]
gitweb: Navbar refactoring - use git_page_nav to generate navigation bar

Use git_page_nav subroutine to generate navigation bar.  Additional
navigation (either formats or pager/pagination) is put into variables.

Corrects error in git_search where hash parameter was added to
"summary" link instead of to "log" link.  Might differ from previous
version by additional "<br/>" in navigation bar.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Add git_page_nav for later use
Jakub Narebski [Sun, 30 Jul 2006 12:59:57 +0000 (14:59 +0200)]
gitweb: Add git_page_nav for later use

Adds git_page_nav subroutine to factor out the generation of the
navigation bar.  Based on Sven Verdoolaege code

  Message-Id: <redacted>
  http://marc.theaimsgroup.com/?l=git&m=111909432415478&w=2

I tried for the refactored navbar generate the same result.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Cleanup - chomp @lines in consistent style
Jakub Narebski [Sun, 30 Jul 2006 12:58:11 +0000 (14:58 +0200)]
gitweb: Cleanup - chomp @lines in consistent style

Use 'my @lines = map { chomp; $_ } <$fd>;' form to read all lines of
git command output into array without trailing newlines.

It has advantage over 'chomp (my (@lines) = <$fd>);' in that it does
not modify array.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Cleanup - chomp $line in consistent style
Jakub Narebski [Sun, 30 Jul 2006 02:08:17 +0000 (04:08 +0200)]
gitweb: Cleanup - chomp $line in consistent style

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: More explicit error messages for open "-|"
Jakub Narebski [Sat, 29 Jul 2006 21:01:00 +0000 (23:01 +0200)]
gitweb: More explicit error messages for open "-|"

Use more explicit error messages when failing magical "-|" open,
stating at least the name of the git command that failed.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: simplify git_get_hash_by_path
Jakub Narebski [Sat, 29 Jul 2006 20:55:01 +0000 (22:55 +0200)]
gitweb: simplify git_get_hash_by_path

Simplify git_get_hash_by_path by using git-ls-tree to do path
limiting, instead of finding correct ttree and parsing unconstrained
git-ls-tree output.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Use list for of open for running git commands, thorougly.
Jakub Narebski [Mon, 31 Jul 2006 01:28:34 +0000 (18:28 -0700)]
gitweb: Use list for of open for running git commands, thorougly.

Use list form of open for running git commands and reading their
output through pipe, for example

open my $fd, "-|", $GIT, "rev-list", "--header", "--parents", $hash

instead of

open my $fd, "-|", "$GIT rev-list --header --parents $hash"

Single letter options use ' instead of " as quotes, according to style
used in list form of magic "-|" open.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: whitespace cleanup
Jakub Narebski [Sat, 29 Jul 2006 20:43:40 +0000 (22:43 +0200)]
gitweb: whitespace cleanup

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: fix two warnings
Johannes Schindelin [Wed, 26 Jul 2006 14:58:35 +0000 (16:58 +0200)]
gitweb: fix two warnings

These warnings cluttered up my log.

Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: escape tag comments
Daniel Drake [Mon, 24 Jul 2006 22:07:23 +0000 (23:07 +0100)]
gitweb: escape tag comments

I have a tag with a comment which includes an & character. Firefox wouldn't
display my gitweb summary page due to malformed XML. This solves the problem.

Signed-off-by: Daniel Drake <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: git_blame2: slight optimization reading the blame lines
Luben Tuikov [Sun, 23 Jul 2006 21:17:48 +0000 (14:17 -0700)]
gitweb.cgi: git_blame2: slight optimization reading the blame lines

Eliminate git_read_blame_line() -- move that code inline and
optimize it.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: Centralize printing of the page path
Luben Tuikov [Sun, 23 Jul 2006 20:31:15 +0000 (13:31 -0700)]
gitweb.cgi: Centralize printing of the page path

Centralize printing of the page path so that
if the entity is a blob, we can set the page path
to be the link to the HEAD revision of the
"raw" blob.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: git_blame2: Revision blocks now have alternating colors
Luben Tuikov [Sun, 23 Jul 2006 20:37:53 +0000 (13:37 -0700)]
gitweb.cgi: git_blame2: Revision blocks now have alternating colors

A revision block is the largest number of adjacent
lines of code originating from the same revision.

This patch adds color to git_blame2(), in that no two
adjacent revision blocks have the same color.  The color
alternates between light and dark.

As we annotate the code lines, we alternate the color
(light, dark) of code lines _per revision_.  This makes it
easier to see line conglomerations per revision.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: Show "raw" head of project link even when $hash is not defined
Luben Tuikov [Sun, 23 Jul 2006 20:30:08 +0000 (13:30 -0700)]
gitweb.cgi: Show "raw" head of project link even when $hash is not defined

Some callers of git_history() do not set $hash of $file_name.
Add code to find it, if it is not defined.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: git_blame2: Allow back-trekking through commits
Luben Tuikov [Sun, 23 Jul 2006 20:36:32 +0000 (13:36 -0700)]
gitweb.cgi: git_blame2: Allow back-trekking through commits

This patch adds the capability of back-trekking through
commits from git_blame2() as follows:
blame2->commit->blame2->commit->blame2->...->initial commit.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: git_blame2: an alternative simple working git blame
Luben Tuikov [Sun, 23 Jul 2006 20:34:55 +0000 (13:34 -0700)]
gitweb.cgi: git_blame2: an alternative simple working git blame

This patch adds an alternative simple working git-blame
called git_blame2().  Simple, because it displays just
three columns: the commit, the line number and the line
of code.  Alternative, because the original git_blame()
is left untouched.  Lines of code are printed html
escaped, but as-is.

git_blame2() uses git-blame as opposed to git-annotate
used by git_blame().

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: Include direct link to "raw" files from "history"
Luben Tuikov [Sun, 23 Jul 2006 20:28:55 +0000 (13:28 -0700)]
gitweb.cgi: Include direct link to "raw" files from "history"

In "history" view, the "page_path" is now also a URL link to
the "raw" format of the file, which will always give you
the latest version in the repository.

This is helpful for externally linking files, such that
the latest version is always referenced and in "raw" format.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: Teach git_history() to read hash from $hash_base
Luben Tuikov [Sun, 23 Jul 2006 20:26:30 +0000 (13:26 -0700)]
gitweb.cgi: Teach git_history() to read hash from $hash_base

Teach git_history() to take its hash argument from
the hb parameter, i.e. from $hash_base.  Also change
all "a=history" actions to pass "hb=" instead of "h=".

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.css: Use monospace fonts for commits and tree-diff.
Luben Tuikov [Thu, 13 Jul 2006 19:36:22 +0000 (12:36 -0700)]
gitweb.css: Use monospace fonts for commits and tree-diff.

Use monospace fonts for the commit header, commit message,
and tree-diff.  This helps viewing commit logs with ASCII art.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Make command invocations go through the git wrapper
Alp Toker [Wed, 12 Jul 2006 22:55:10 +0000 (23:55 +0100)]
gitweb: Make command invocations go through the git wrapper

This patch makes invocations of core git commands go through the 'git'
binary itself, which improves readability and might help system
administrators lock down their CGI environment for security.

Signed-off-by: Alp Toker <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Include a site name in page titles
Alp Toker [Tue, 11 Jul 2006 20:10:26 +0000 (21:10 +0100)]
gitweb: Include a site name in page titles

This helps users tell one 'git' bookmark apart from the other in their
browser and improves the indexing of gitweb sites in Web search engines.
The title defaults to the SERVER_NAME environment variable, often given
by the webserver.

Signed-off-by: Alp Toker <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Send XHTML as 'application/xhtml+xml' where possible
Alp Toker [Tue, 11 Jul 2006 10:19:34 +0000 (11:19 +0100)]
gitweb: Send XHTML as 'application/xhtml+xml' where possible

"The 'text/html' media type [RFC2854] is primarily for HTML, not for
XHTML. In general, this media type is NOT suitable for XHTML."

This patch makes gitweb use content negotiation to conservatively send
pages as Content-Type 'application/xhtml+xml' when the user agent
explicitly claims to support it.

It falls back to 'text/html' even if the user agent appears to
implicitly support 'application/xhtml+xml' due to a '*/*' glob, working
around an insidious bug in Internet Explorer where sending the correct
media type prevents the page from being displayed.

Signed-off-by: Alp Toker <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: Teach "a=blob" action to know the blob/file mime type
Luben Tuikov [Mon, 10 Jul 2006 03:18:57 +0000 (20:18 -0700)]
gitweb.cgi: Teach "a=blob" action to know the blob/file mime type

Now action "blob" knows the file type: if the file type is
not "text/*" then action "blob" defaults to "blob_plain",
i.e. the file is downloaded raw for the browser to interpret.
If the file type is "text/*", then "blob" defaults to the
current "cat -n"-like output, from which you can click
"plain", to get the "blob_plain" output.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb.cgi: Create $git_temp if it doesn't exist
Luben Tuikov [Mon, 10 Jul 2006 03:07:27 +0000 (20:07 -0700)]
gitweb.cgi: Create $git_temp if it doesn't exist

Unless we'd done diffs, $git_temp doesn't exist and then
mime lookups fail.  Explicitly create it, if it doesn't
exist already.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agoAdd "raw" output option to blobs in "tree" view format
Luben Tuikov [Fri, 7 Jul 2006 06:39:30 +0000 (23:39 -0700)]
Add "raw" output option to blobs in "tree" view format

Add a "raw" output option to blobs in "tree" view format, so that the
user doesn't have to click on "blob", wait for the (binary) file to be
uploaded and shown in "blob" mode, and then click on "plain" to
download the (binary) file.

This is useful when the file is clearly binary and we don't want the
browser to upload and display it in "blob" mode, but we just want to
download it.  Case in point: pdf files, wlg.

Note: the "raw" format is equivalent to the blob->plain view, not
blob->head view. I.e. the view has the hash of the file as listed
by git-ls-tree, not just "HEAD".

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Declare global variables with "our"
Dennis Stosberg [Wed, 21 Jun 2006 13:07:08 +0000 (15:07 +0200)]
gitweb: Declare global variables with "our"

Variables declared with "my" in the file scope cannot be accessed from
subroutines with mod_perl.

Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Enable tree (directory) history display
Luben Tuikov [Sat, 1 Jul 2006 02:11:18 +0000 (19:11 -0700)]
gitweb: Enable tree (directory) history display

This patch allows history display of whole trees/directories a la
"git-rev-list HEAD -- <dir or file>".  I find this useful especially
when a project lives in its own subdirectory, as opposed to being all
of the GIT repository (i.e. when a sub-project is merged into a
super-project).

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: optimize per-file history generation
Junio C Hamano [Sat, 1 Jul 2006 01:54:32 +0000 (18:54 -0700)]
gitweb: optimize per-file history generation

The rev-list command that is recent enough can filter commits
based on paths they touch, so use it instead of generating the
full list and limiting it by passing it with diff-tree --stdin.

[jc: The patch originally came from Luben Tuikov but the it was
 corrupt, but it was short enough to be applied by hand.  I
 added the --full-history to make the output compatible with the
 original while doing so.]

Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: whitespace cleanup around '='
Jakub Narebski [Thu, 22 Jun 2006 06:52:57 +0000 (08:52 +0200)]
gitweb: whitespace cleanup around '='

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Use $hash_base as $search_hash if possible
Timo Hirvonen [Tue, 20 Jun 2006 13:41:05 +0000 (16:41 +0300)]
gitweb: Use $hash_base as $search_hash if possible

$hash (h parameter) does not always point to a commit. Use $hash_base as
$search_hash when it is defined.

Signed-off-by: Timo Hirvonen <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: Make use of $PATH_INFO for project parameter
Jakub Narebski [Wed, 21 Jun 2006 15:06:39 +0000 (17:06 +0200)]
gitweb: Make use of $PATH_INFO for project parameter

Allow to have project name in the path part of URL, just after the name of
script. For example instead of gitweb.cgi?p=git.git you can write
gitweb.cgi/git.git or gitweb.cgi/git.git/

Not used in URLs inside gitweb; it means that the above alternate syntax
must be generated by hand, at least for now.

Side effect: project name parameter is now stripped of leading and
trailing slash before validation.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agoMove $gitbin earlier in gitweb.cgi
Jakub Narebski [Wed, 21 Jun 2006 07:48:04 +0000 (09:48 +0200)]
Move $gitbin earlier in gitweb.cgi

(cherry picked from 9dca843086356b964f27d8fabe1e3c48074a9f02 commit)

Signed-off-by: Jakub Narebski <jnareb.com>
Signed-off-by: Junio C Hamano <redacted>
2 days agoAdd git version to gitweb output
Jakub Narebski [Wed, 21 Jun 2006 07:48:03 +0000 (09:48 +0200)]
Add git version to gitweb output

Add git-core binaries used version as the comment at the beginning of HTML
output, just below the comment with version of git web interface version.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: whitespace cleanup
Jakub Narebski [Wed, 21 Jun 2006 07:48:02 +0000 (09:48 +0200)]
gitweb: whitespace cleanup

Do not use tabs to align variable initialization (actually use
tabs only at the beginning of line, for code indent).  Remove trailing
whitespace.  Make whitespace usage more consistent.

Signed-off-by: Jakub Narebski <jnareb.com>
Signed-off-by: Junio C Hamano <redacted>
2 days agogitweb: style done with stylesheet
Jakub Narebski [Tue, 20 Jun 2006 14:58:12 +0000 (14:58 +0000)]
gitweb: style done with stylesheet

Replace (almost) all 'style' attributes with 'class' attribute
and adding rule to CSS file. Some tables use CSS for styling
instead of legacy styling attributes.

[jc: too many rejects -- hand fixed and reindented]

2 days agogitweb: A couple of page title tweaking
Jakub Narebski [Tue, 20 Jun 2006 06:17:03 +0000 (06:17 +0000)]
gitweb: A couple of page title tweaking

[jc: the e-mailed patch did not apply, so I had to guess but I think
 I got the result right.]

2 days agoFix: Support for the standard mime.types map in gitweb
Jakub Narebski [Tue, 20 Jun 2006 06:19:31 +0000 (06:19 +0000)]
Fix: Support for the standard mime.types map in gitweb

Temporary fix: commented out offending line in mimetype_guess.

Signed-off-by: Junio C Hamano <redacted>
4 days agogitweb: add type="text/css" to stylesheet link
Jakub Narebski [Tue, 20 Jun 2006 04:11:32 +0000 (04:11 +0000)]
gitweb: add type="text/css" to stylesheet link

Signed-off-by: Junio C Hamano <redacted>
4 days agoMake CSS file gitweb/gitweb.css more readable
Jakub Narebski [Mon, 19 Jun 2006 18:27:59 +0000 (20:27 +0200)]
Make CSS file gitweb/gitweb.css more readable

Taken from git://git.xmms.se/xmms2/gitweb-xmms2.git
commit  561262030d58a6325f500b36d836dbe02a5abc68
"Make CSS readable" by Daniel Svensson, with extra
parts removed and consistent whitespace usage.

[jc: tabified the results to cleaning things up, and removed an
 added item that was commented out. ]

Signed-off-by: Junio C Hamano <redacted>
4 days agoFix gitweb stylesheet
Jakub Narebski [Sun, 18 Jun 2006 06:45:03 +0000 (23:45 -0700)]
Fix gitweb stylesheet

An earlier commit forgot to move some piece from the CGI script
to the external stylesheet.

Signed-off-by: Junio C Hamano <redacted>
4 days agoSupport for the standard mime.types map in gitweb
Petr Baudis [Sat, 17 Jun 2006 22:01:06 +0000 (00:01 +0200)]
Support for the standard mime.types map in gitweb

gitweb will try to look up the filename mimetype in /etc/mime.types
and optionally a user-configured mime.types map as well.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
4 days agogitweb: text files for 'blob_plain' action without charset by default
Jakub Narebski [Sat, 17 Jun 2006 16:07:24 +0000 (18:07 +0200)]
gitweb: text files for 'blob_plain' action without charset by default

$default_text_plain_charset is undefined (no specified charset) by
default. Additionally ':raw' layer for binmode is used for outputting file
content.

Signed-off-by: Junio C Hamano <redacted>
4 days agogitweb: safely output binary files for 'blob_plain' action
Jakub Narebski [Sat, 17 Jun 2006 11:32:15 +0000 (13:32 +0200)]
gitweb: safely output binary files for 'blob_plain' action

gitweb tries now to output correct Content-Type header for
'blob_plain' action; for now text/plain for text files,
appropriate image MIME type for *.png, *.gif and *.jpg/*.jpeg files,
and application/octet-stream for other binary files.

Introduced new configuration variables: $default_blob_plain_mimetype
and $default_text_plain_charset (only 'utf-8' is guaranteed to work
for the latter).

binmode changed to ':raw' in git_blob_plain for output of non-text files.

Signed-off-by: Junio C Hamano <redacted>
4 days agoMove gitweb style to gitweb.css
Jakub Narebski [Sat, 17 Jun 2006 09:23:56 +0000 (11:23 +0200)]
Move gitweb style to gitweb.css

Move gitweb style from embedded <style> element in gitweb/gitweb.cgi
to external CSS file gitweb/gitweb.css.

Signed-off-by: Junio C Hamano <redacted>
4 days agoUpdate gitweb README: gitweb is now included with git
Jakub Narebski [Sat, 17 Jun 2006 06:53:45 +0000 (08:53 +0200)]
Update gitweb README: gitweb is now included with git

Signed-off-by: Junio C Hamano <redacted>
4 days agogitweb: Make the `blame' interface in gitweb optional.
Florian Forster [Mon, 12 Jun 2006 08:31:57 +0000 (10:31 +0200)]
gitweb: Make the `blame' interface in gitweb optional.

Since `git-annotate' is an expensive operation to run it may be
desirable to deactivate this functionality. This patch introduces
the `gitweb.blame' option to git-repo-config and disables the blame
support by default.

Signed-off-by: Florian Forster <redacted>
Signed-off-by: Junio C Hamano <redacted>
4 days agogitweb: Adding a `blame' interface.
Florian Forster [Sun, 11 Jun 2006 15:45:19 +0000 (17:45 +0200)]
gitweb: Adding a `blame' interface.

This patch adds an interface for `git-blame' to `gitweb.cgi'.
Links to it are placed in `git_blob'.

Internally the code uses `git-annotate' because `git-blame's output
differs for files that have been renamed in the past. However, I like
the term `blame' better.

[jc: blame can be told to produce the compatible format btw...]

Signed-off-by: Florian Forster <redacted>
Signed-off-by: Junio C Hamano <redacted>
19 years agov267
Kay Sievers [Tue, 30 May 2006 12:41:04 +0000 (14:41 +0200)]
v267

19 years agoprepend '--' to filelist when calling git-diff-tree
Rocco Rutte [Tue, 30 May 2006 12:40:10 +0000 (14:40 +0200)]
prepend '--' to filelist when calling git-diff-tree

19 years agov266
Kay Sievers [Mon, 22 May 2006 12:31:09 +0000 (14:31 +0200)]
v266

19 years agoremove Christian's email address
Kay Sievers [Mon, 22 May 2006 12:30:47 +0000 (14:30 +0200)]
remove Christian's email address

19 years agov265
Kay Sievers [Mon, 1 May 2006 01:40:54 +0000 (03:40 +0200)]
v265

19 years agohandle utf8 characters from /etc/passwd
Kay Sievers [Mon, 1 May 2006 01:40:22 +0000 (03:40 +0200)]
handle utf8 characters from /etc/passwd

20 years agov264
Kay Sievers [Tue, 17 Jan 2006 02:50:44 +0000 (03:50 +0100)]
v264

20 years agofix: Use of uninitialized value
Kay Sievers [Tue, 17 Jan 2006 02:50:20 +0000 (03:50 +0100)]
fix: Use of uninitialized value

The subroutine did not check the case where HEAD does not verify.

Patch from Junio C Hamano <redacted>

20 years agov263
Kay Sievers [Mon, 9 Jan 2006 12:14:00 +0000 (13:14 +0100)]
v263

20 years agoallow working in repositories with textual symref HEAD
Junio C Hamano [Mon, 9 Jan 2006 12:13:39 +0000 (13:13 +0100)]
allow working in repositories with textual symref HEAD

20 years agoresolve textual hashes when looking up "refs"
Kay Sievers [Thu, 22 Dec 2005 21:58:29 +0000 (22:58 +0100)]
resolve textual hashes when looking up "refs"

Thanks to Jon Nelson for the patch.

Signed-off-by: Kay Sievers <redacted>
20 years agov262
Kay Sievers [Mon, 19 Dec 2005 03:09:32 +0000 (04:09 +0100)]
v262

20 years agodefine default colors
Kay Sievers [Mon, 19 Dec 2005 03:09:02 +0000 (04:09 +0100)]
define default colors

Thanks to Kir Kolyshkin for pointing it out.

Signed-off-by: Kay Sievers <redacted>
20 years agov261
Kay Sievers [Wed, 7 Dec 2005 15:33:08 +0000 (16:33 +0100)]
v261

20 years agofix leading whitespace in commit text
Kay Sievers [Wed, 7 Dec 2005 15:32:51 +0000 (16:32 +0100)]
fix leading whitespace in commit text

Signed-off-by: Kay Sievers <redacted>
20 years agomore tags
Kay Sievers [Wed, 7 Dec 2005 15:10:01 +0000 (16:10 +0100)]
more tags

Signed-off-by: Kay Sievers <redacted>
20 years agov260
Kay Sievers [Wed, 7 Dec 2005 09:51:59 +0000 (10:51 +0100)]
v260

20 years agoattach tag to the link
Kay Sievers [Wed, 7 Dec 2005 09:51:42 +0000 (10:51 +0100)]
attach tag to the link

Signed-off-by: Kay Sievers <redacted>
20 years agov259
Kay Sievers [Wed, 7 Dec 2005 09:13:19 +0000 (10:13 +0100)]
v259

20 years agoshow multiple tags
Kay Sievers [Wed, 7 Dec 2005 09:12:55 +0000 (10:12 +0100)]
show multiple tags

Signed-off-by: Kay Sievers <redacted>
20 years agov258
Kay Sievers [Wed, 7 Dec 2005 08:47:34 +0000 (09:47 +0100)]
v258

20 years agoshow tags in lists
Kay Sievers [Wed, 7 Dec 2005 08:44:06 +0000 (09:44 +0100)]
show tags in lists

Signed-off-by: Kay Sievers <redacted>
20 years agov257
Kay Sievers [Thu, 24 Nov 2005 18:44:28 +0000 (19:44 +0100)]
v257

20 years agofix "rename" output
Kay Sievers [Thu, 24 Nov 2005 18:43:53 +0000 (19:43 +0100)]
fix "rename" output

Signed-off-by: Kay Sievers <redacted>
20 years agov256
Kay Sievers [Thu, 24 Nov 2005 17:14:44 +0000 (18:14 +0100)]
v256

20 years agofix quoted filename lookup
Kay Sievers [Thu, 24 Nov 2005 17:14:25 +0000 (18:14 +0100)]
fix quoted filename lookup

Signed-off-by: Kay Sievers <redacted>
20 years agov255
Kay Sievers [Thu, 24 Nov 2005 16:30:38 +0000 (17:30 +0100)]
v255

20 years agov254
Kay Sievers [Thu, 24 Nov 2005 16:15:30 +0000 (17:15 +0100)]
v254

20 years agoallow utf8 characters in url parameter escape
Kay Sievers [Thu, 24 Nov 2005 15:56:55 +0000 (16:56 +0100)]
allow utf8 characters in url parameter escape

Signed-off-by: Kay Sievers <redacted>
20 years agov253
Kay Sievers [Wed, 23 Nov 2005 17:00:34 +0000 (18:00 +0100)]
v253

20 years agoset logo output to raw mode
Kay Sievers [Wed, 23 Nov 2005 15:02:13 +0000 (16:02 +0100)]
set logo output to raw mode

20 years agoadd broken latin encoding to test file
Kay Sievers [Wed, 23 Nov 2005 14:16:49 +0000 (15:16 +0100)]
add broken latin encoding to test file

20 years agoadd ut8 test file
Kay Sievers [Wed, 23 Nov 2005 14:09:59 +0000 (15:09 +0100)]
add ut8 test file

It contains Märchen. (\xc3a4)

20 years agofix utf8 decoding
Kay Sievers [Wed, 23 Nov 2005 03:26:40 +0000 (04:26 +0100)]
fix utf8 decoding

Signed-off-by: Kay Sievers <redacted>
20 years agov252
Kay Sievers [Sun, 20 Nov 2005 01:13:08 +0000 (02:13 +0100)]
v252

20 years agofix another typo
Kay Sievers [Sun, 20 Nov 2005 01:12:45 +0000 (02:12 +0100)]
fix another typo

Signed-off-by: Kay Sievers <redacted>
20 years agov251
Kay Sievers [Sun, 20 Nov 2005 01:03:29 +0000 (02:03 +0100)]
v251

20 years agoadd missing esc() rename
Kay Sievers [Sun, 20 Nov 2005 01:03:09 +0000 (02:03 +0100)]
add missing esc() rename

Signed-off-by: Kay Sievers <redacted>
20 years agov250
Kay Sievers [Sat, 19 Nov 2005 16:56:29 +0000 (17:56 +0100)]
v250

20 years agoreplace invalid utf8 sequences by UTF-8 REPLACEMENT CHARACTER (efbfbd)
Kay Sievers [Sat, 19 Nov 2005 16:41:29 +0000 (17:41 +0100)]
replace invalid utf8 sequences by UTF-8 REPLACEMENT CHARACTER (efbfbd)

I still strongly disagree with the git maintainers not to hint people,
to use the only sane default encoding for a distributed project,
which is utf8. I'm tired of hearing filesystem development arguments.
Git is a software offered to merge forth and back across the world
and not to provide a content neutral filesystem.
Btw: I have nothing against the ability to run git in a closed environment,
with a different encoding, that's fine, sure. But that is obviously not
the case for the projects on kernel.org. It's about sane defaults,
nothing else.

You have to make decisions guy, as always in life. The problems to
allow random encoded garbage in commit messages _without_ storing
the encoding, just makes zero sense. Eighter you introduce a per-commit
encoding field, if you insist on this craziness, or you define a default
encoding. Everything else is just lazy and does not solve any problem,
besides that you can claim now, that you are not responsible for the mess
in the repository.

Gitweb shows several commits at once, you allow various encodings committed
to the same repository, without any hint what that garbage from the
individual commits is encoded with. No idea why you don't get
the problem - it's unsolvable. If you merge different peoples work, you
have to speak a common language!

Kay Sievers <redacted>

20 years agoescape ' ' with '+' in url's
Kay Sievers [Mon, 14 Nov 2005 14:15:12 +0000 (15:15 +0100)]
escape ' ' with '+' in url's

20 years agov249
Kay Sievers [Mon, 14 Nov 2005 05:12:33 +0000 (06:12 +0100)]
v249

20 years agomake ' ' and '+' in filenames some kind of working
Kay Sievers [Mon, 14 Nov 2005 05:10:07 +0000 (06:10 +0100)]
make ' ' and '+' in filenames some kind of working

20 years agoescape '+' and ' ' in url's
Kay Sievers [Mon, 14 Nov 2005 04:47:18 +0000 (05:47 +0100)]
escape '+' and ' ' in url's

20 years agoupdate the test files to have a diff
Kay Sievers [Mon, 14 Nov 2005 04:45:31 +0000 (05:45 +0100)]
update the test files to have a diff

20 years agoadd test files
Kay Sievers [Mon, 14 Nov 2005 04:43:02 +0000 (05:43 +0100)]
add test files

20 years agov248
Kay Sievers [Wed, 19 Oct 2005 01:24:27 +0000 (03:24 +0200)]
v248

This page took 0.593024 seconds and 4 git commands to generate.