]> Lady’s Gitweb - Gitweb/log
Gitweb
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

20 years agoadd Expires: +1d header to commit and commitdiff pages
Kay Sievers [Wed, 19 Oct 2005 01:18:45 +0000 (03:18 +0200)]
add Expires: +1d header to commit and commitdiff pages

Signed-off-by: Kay Sievers <redacted>
20 years agoprovide filename for "save as" in plaintext views
Kay Sievers [Mon, 17 Oct 2005 01:27:54 +0000 (03:27 +0200)]
provide filename for "save as" in plaintext views

Signed-off-by: Kay Sievers <redacted>
20 years agov247
Kay Sievers [Mon, 3 Oct 2005 23:13:22 +0000 (01:13 +0200)]
v247

20 years agorename "branches" to "heads"
Kay Sievers [Mon, 3 Oct 2005 23:12:47 +0000 (01:12 +0200)]
rename "branches" to "heads"

Signed-off-by: Kay Sievers <redacted>
20 years agov246
Kay Sievers [Tue, 20 Sep 2005 08:25:01 +0000 (10:25 +0200)]
v246

20 years agostart searching at the current $hash value
Kay Sievers [Sat, 17 Sep 2005 01:00:21 +0000 (03:00 +0200)]
start searching at the current $hash value

Signed-off-by: Kay Sievers <redacted>
20 years agov245
Kay Sievers [Tue, 13 Sep 2005 00:22:51 +0000 (02:22 +0200)]
v245

Signed-off-by: Kay Sievers <redacted>
20 years agoswitch to git-rev-list for commit reading
Kay Sievers [Tue, 13 Sep 2005 00:21:59 +0000 (02:21 +0200)]
switch to git-rev-list for commit reading

This way we don't need to parse the "grafts".

Signed-off-by: Kay Sievers <redacted>
20 years agov244
Kay Sievers [Tue, 6 Sep 2005 21:26:57 +0000 (23:26 +0200)]
v244

Signed-off-by: Kay Sievers <redacted>
20 years agofix typo in link parameter of git_commit
Kay Sievers [Tue, 6 Sep 2005 21:26:10 +0000 (23:26 +0200)]
fix typo in link parameter of git_commit

Signed-off-by: Kay Sievers <redacted>
20 years agotranslate reference into hash while reading a commit
Kay Sievers [Sat, 3 Sep 2005 23:37:25 +0000 (01:37 +0200)]
translate reference into hash while reading a commit

20 years agov243
Kay Sievers [Sat, 3 Sep 2005 12:51:13 +0000 (14:51 +0200)]
v243

Signed-off-by: Kay Sievers <redacted>
20 years agocommon input validation to allow passing of textual hash id's
Kay Sievers [Sat, 3 Sep 2005 12:50:33 +0000 (14:50 +0200)]
common input validation to allow passing of textual hash id's

20 years agov242
Kay Sievers [Wed, 31 Aug 2005 02:11:33 +0000 (04:11 +0200)]
v242

fix typo

Signed-off-by: Kay Sievers <redacted>
20 years agov241
Kay Sievers [Wed, 31 Aug 2005 01:54:45 +0000 (03:54 +0200)]
v241

Signed-off-by: Kay Sievers <redacted>
20 years agoShow tooltips (like this one :)) containing full titles for truncated commit titles...
Kay Sievers [Wed, 31 Aug 2005 01:47:13 +0000 (03:47 +0200)]
Show tooltips (like this one :)) containing full titles for truncated commit titles in the summary and shortlog views.

Thanks for the patch to:
  Timo Hirvonen <tihirvon at gmail.com>

20 years agodon't chop_str if adding ... is longer than the original
Kay Sievers [Wed, 31 Aug 2005 01:25:29 +0000 (03:25 +0200)]
don't chop_str if adding ... is longer than the original

Signed-off-by: Kay Sievers <redacted>
20 years agoAdd <author> and <guid> to RSS feed
Yasushi SHOJI [Thu, 18 Aug 2005 16:24:28 +0000 (18:24 +0200)]
Add <author> and <guid> to RSS feed

From http://blogs.law.harvard.edu/tech/rss
  author - Email address of the author of the item.
  guid   - A string that uniquely identifies the item.

Signed-off-by: Yasushi SHOJI <redacted>
20 years agofix search parsing, later git does not print a trailing space
Kay Sievers [Fri, 12 Aug 2005 20:12:58 +0000 (22:12 +0200)]
fix search parsing, later git does not print a trailing space

20 years agomake index page sorting more visible and increase RSS item count
Kay Sievers [Fri, 12 Aug 2005 19:43:32 +0000 (21:43 +0200)]
make index page sorting more visible and increase RSS item count

The RSS feed now shows 30 items + all items more recent than 48 hours
but not more than 150. Let's see how that works...

20 years agoallow sorting of index page by project path, owner and age
Kay Sievers [Wed, 10 Aug 2005 01:53:09 +0000 (03:53 +0200)]
allow sorting of index page by project path, owner and age

20 years agoMake the tag view look like commit header.
Kay Sievers [Sun, 7 Aug 2005 22:02:39 +0000 (00:02 +0200)]
Make the tag view look like commit header.

20 years agoadd README
Kay Sievers [Sun, 7 Aug 2005 20:39:58 +0000 (22:39 +0200)]
add README

Two files are better than one. :)

20 years agov236
Kay Sievers [Sun, 7 Aug 2005 18:29:03 +0000 (20:29 +0200)]
v236

20 years agov235
Kay Sievers [Sun, 7 Aug 2005 18:28:53 +0000 (20:28 +0200)]
v235

20 years agov234
Kay Sievers [Sun, 7 Aug 2005 18:28:42 +0000 (20:28 +0200)]
v234

20 years agov233
Kay Sievers [Sun, 7 Aug 2005 18:28:33 +0000 (20:28 +0200)]
v233

20 years agov232
Kay Sievers [Sun, 7 Aug 2005 18:28:01 +0000 (20:28 +0200)]
v232

20 years agov229
Kay Sievers [Sun, 7 Aug 2005 18:27:49 +0000 (20:27 +0200)]
v229

20 years agov227
Kay Sievers [Sun, 7 Aug 2005 18:27:38 +0000 (20:27 +0200)]
v227

20 years agov225
Kay Sievers [Sun, 7 Aug 2005 18:27:27 +0000 (20:27 +0200)]
v225

20 years agov220
Kay Sievers [Sun, 7 Aug 2005 18:27:18 +0000 (20:27 +0200)]
v220

20 years agov206
Kay Sievers [Sun, 7 Aug 2005 18:26:49 +0000 (20:26 +0200)]
v206

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