<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb, branch v1.7.11</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.11</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.11'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2012-04-30T00:52:00Z</updated>
<entry>
<title>Merge branch 'kk/gitweb-omit-expensive'</title>
<updated>2012-04-30T00:52:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-04-30T00:52:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=55375e94736ba47a264ec0437fc723b2ed80919c'/>
<id>urn:sha1:55375e94736ba47a264ec0437fc723b2ed80919c</id>
<content type='text'>
"gitweb" learned to optionally omit output of fields that are expensive
to generate.

By Kacper Kornet
* kk/gitweb-omit-expensive:
  gitweb: Option to not display information about owner
  gitweb: Option to omit column with time of the last change
</content>
</entry>
<entry>
<title>Merge branch 'kk/maint-gitweb-missing-owner'</title>
<updated>2012-04-30T00:51:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-04-30T00:51:56Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=070d5271e464d7256f675c4259b230bf11aa2ffc'/>
<id>urn:sha1:070d5271e464d7256f675c4259b230bf11aa2ffc</id>
<content type='text'>
By Kacper Kornet
* kk/maint-gitweb-missing-owner:
  gitweb: Don't set owner if got empty value from projects.list
</content>
</entry>
<entry>
<title>gitweb: Option to not display information about owner</title>
<updated>2012-04-26T18:24:40Z</updated>
<author>
<name>Kacper Kornet</name>
<email>draenog@pld-linux.org</email>
</author>
<published>2012-04-26T16:45:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0ebe7827b6f00797ab850e8ebc28f0fa22f1df55'/>
<id>urn:sha1:0ebe7827b6f00797ab850e8ebc28f0fa22f1df55</id>
<content type='text'>
In some setups the repository owner is not a well defined concept
and administrator can prefer it to be not shown. This commit add
and an option that enable to reach this effect.

Signed-off-by: Kacper Kornet &lt;draenog@pld-linux.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Option to omit column with time of the last change</title>
<updated>2012-04-25T23:42:34Z</updated>
<author>
<name>Kacper Kornet</name>
<email>draenog@pld-linux.org</email>
</author>
<published>2012-04-24T17:39:15Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5710be46d88ea548159e7493973b5488e6d2799f'/>
<id>urn:sha1:5710be46d88ea548159e7493973b5488e6d2799f</id>
<content type='text'>
Generating information about last change for a large number of git
repositories can be very time consuming. This commit add an option to
omit 'Last Change' column when presenting the list of repositories.

Signed-off-by: Kacper Kornet &lt;draenog@pld-linux.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Don't set owner if got empty value from projects.list</title>
<updated>2012-04-25T23:41:37Z</updated>
<author>
<name>Kacper Kornet</name>
<email>draenog@pld-linux.org</email>
</author>
<published>2012-04-24T17:50:05Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=75e0dffef009bb06072e44d38555373639d94986'/>
<id>urn:sha1:75e0dffef009bb06072e44d38555373639d94986</id>
<content type='text'>
Prevent setting owner to an empty value if it is not specified in
projects.list file. Otherwise it stops retrieving information about the
owner from other files.

Signed-off-by: Kacper Kornet &lt;draenog@pld-linux.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mk/gitweb-diff-hl'</title>
<updated>2012-04-24T21:41:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-04-24T21:41:01Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c6cfa5bbbba9eb4fb8d45d2ab942b1ebcb2bcb73'/>
<id>urn:sha1:c6cfa5bbbba9eb4fb8d45d2ab942b1ebcb2bcb73</id>
<content type='text'>
"gitweb" learns to highlight the patch it outputs even more.

By Michał Kiedrowicz (7) and Jakub Narębski (1)
* mk/gitweb-diff-hl:
  gitweb: Refinement highlightning in combined diffs
  gitweb: Highlight interesting parts of diff
  gitweb: Push formatting diff lines to print_diff_chunk()
  gitweb: Use print_diff_chunk() for both side-by-side and inline diffs
  gitweb: Extract print_sidebyside_diff_lines()
  gitweb: Pass esc_html_hl_regions() options to esc_html()
  gitweb: esc_html_hl_regions(): Don't create empty &lt;span&gt; elements
  gitweb: Use descriptive names in esc_html_hl_regions()
</content>
</entry>
<entry>
<title>Merge branch 'wk/gitweb-snapshot-use-if-modified-since'</title>
<updated>2012-04-16T19:42:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-04-16T19:42:48Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0f3ddd4a3abe863fae9c36ec4311ac936a2d8ed9'/>
<id>urn:sha1:0f3ddd4a3abe863fae9c36ec4311ac936a2d8ed9</id>
<content type='text'>
Makes 'snapshot' request to "gitweb" honor If-Modified-Since: header,
based on the commit date.

By W. Trevor King
* wk/gitweb-snapshot-use-if-modified-since:
  gitweb: add If-Modified-Since handling to git_snapshot().
  gitweb: refactor If-Modified-Since handling
  gitweb: add `status` headers to git_feed() responses.
</content>
</entry>
<entry>
<title>gitweb: Refinement highlightning in combined diffs</title>
<updated>2012-04-11T21:26:02Z</updated>
<author>
<name>Michał Kiedrowicz</name>
<email>michal.kiedrowicz@gmail.com</email>
</author>
<published>2012-04-11T21:18:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=51ef7a6e80013c9131c8751fca7c11b0b4bfba85'/>
<id>urn:sha1:51ef7a6e80013c9131c8751fca7c11b0b4bfba85</id>
<content type='text'>
The highlightning of combined diffs is currently disabled.  This is
because output from a combined diff is much harder to highlight because
it is not obvious which removed and added lines should be compared.

Current code requires that the number of added lines is equal to the
number of removed lines and only skips first +/- character, treating
second +/- as a line content, Thus, it is not possible to simply use
existing algorithm unchanged for combined diffs.

Let's start with a simple case: only highlight changes that come from
one parent, i.e. when every removed line has a corresponding added line
for the same parent.  This way the highlightning cannot get wrong. For
example, following diffs would be highlighted:

	- removed line for first parent
	+ added line for first parent
	  context line
	 -removed line for second parent
	 +added line for second parent

or

	- removed line for first parent
	 -removed line for second parent
	+ added line for first parent
	 +added line for second parent

but following output will not:

	- removed line for first parent
	 -removed line for second parent
	 +added line for second parent
	++added line for both parents

In other words, we require that pattern of '-'-es in pre-image matches
pattern of '+'-es in post-image.

Further changes may introduce more intelligent approach that better
handles combined diffs.

Signed-off-by: Michał Kiedrowicz &lt;michal.kiedrowicz@gmail.com&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Highlight interesting parts of diff</title>
<updated>2012-04-11T21:26:02Z</updated>
<author>
<name>Michał Kiedrowicz</name>
<email>michal.kiedrowicz@gmail.com</email>
</author>
<published>2012-04-11T21:18:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5fb6ddf67afb3d0dc9b1fce64543f20b28a81b4b'/>
<id>urn:sha1:5fb6ddf67afb3d0dc9b1fce64543f20b28a81b4b</id>
<content type='text'>
Reading diff output is sometimes very hard, even if it's colored,
especially if lines differ only in few characters.  This is often true
when a commit fixes a typo or renames some variables or functions.

This commit teaches gitweb to highlight characters that are different
between old and new line with a light green/red background.  This should
work in the similar manner as in Trac or GitHub.

The algorithm that compares lines is based on contrib/diff-highlight.
Basically, it works by determining common prefix/suffix of corresponding
lines and highlightning only the middle part of lines.  For more
information, see contrib/diff-highlight/README.

Combined diffs are not supported but a following commit will change it.

Since we need to pass esc_html()'ed or esc_html_hl_regions()'ed lines to
format_diff_lines(), so it was taught to accept preformatted lines
passed as a reference.

Signed-off-by: Michał Kiedrowicz &lt;michal.kiedrowicz@gmail.com&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Push formatting diff lines to print_diff_chunk()</title>
<updated>2012-04-11T21:26:02Z</updated>
<author>
<name>Michał Kiedrowicz</name>
<email>michal.kiedrowicz@gmail.com</email>
</author>
<published>2012-04-11T21:18:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f4a81026508a48a129bd936aef2c75ac1f1cdd97'/>
<id>urn:sha1:f4a81026508a48a129bd936aef2c75ac1f1cdd97</id>
<content type='text'>
Now lines are formatted closer to place where we actually use HTML
formatted output.

This means that we put raw lines in the @chunk accumulator, rather than
formatted lines.  Because we still need to know class (type) of line
when accumulating data to post-process and print, process_diff_line()
subroutine was retired and replaced by diff_line_class() used in
git_patchset_body() and new restructured format_diff_line() used in
print_diff_chunk().

As a side effect, we have to pass \%from and \%to down to callstack.

This is a preparation patch for diff refinement highlightning. It's not
meant to change gitweb output.

[jn: wrote commit message]

Signed-off-by: Michał Kiedrowicz &lt;michal.kiedrowicz@gmail.com&gt;
Acked-by: Jakub Narębski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
