<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-diff.c, branch rm/namespace</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/ui-diff.c?h=rm%2Fnamespace</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/ui-diff.c?h=rm%2Fnamespace'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2016-07-13T19:09:37Z</updated>
<entry>
<title>Add a wrapper for get_sha1 called cgit_get_sha1</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T19:23:51Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=b2ac89127af9dde5c3addbd3e00eedd9f498cfab'/>
<id>urn:sha1:b2ac89127af9dde5c3addbd3e00eedd9f498cfab</id>
<content type='text'>
This will later be changed to include namespace resolution,
but the call sites are changed now to keep the changes small.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-diff: action='.' is not correct</title>
<updated>2016-05-12T19:39:06Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-05-12T19:38:59Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=21bf30b043c5bcbf4bb92d7e79cb642ab9c2287d'/>
<id>urn:sha1:21bf30b043c5bcbf4bb92d7e79cb642ab9c2287d</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>git: update to v2.7.0</title>
<updated>2016-01-13T16:12:17Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2016-01-05T06:38:53Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=559ab5ecc4445c8477ecf62c9fc97efa412dd562'/>
<id>urn:sha1:559ab5ecc4445c8477ecf62c9fc97efa412dd562</id>
<content type='text'>
Update to git version v2.7.0.

* Upstream commit ed1c9977cb1b63e4270ad8bdf967a2d02580aa08 (Remove
  get_object_hash.) changed API:

  Convert all instances of get_object_hash to use an appropriate
  reference to the hash member of the oid member of struct object.
  This provides no functional change, as it is essentially a macro
  substitution.

Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>diff: move layout to page function</title>
<updated>2015-08-14T13:46:51Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-14T11:47:14Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=3b220eb22ded98851ca9dee7c3c3e3b0fd02c49b'/>
<id>urn:sha1:3b220eb22ded98851ca9dee7c3c3e3b0fd02c49b</id>
<content type='text'>
The existing "show_ctrls" flag is used to control whether we are running
in an existing page or control the page ourselves.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>log: allow users to follow a file</title>
<updated>2015-08-12T14:57:46Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-12T14:55:28Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=30304d8156a72ffc95e45e1aa9407319b81bd253'/>
<id>urn:sha1:30304d8156a72ffc95e45e1aa9407319b81bd253</id>
<content type='text'>
Teach the "log" UI to behave in the same way as "git log --follow", when
given a suitable instruction by the user.  The default behaviour remains
to show the log without following renames, but the follow behaviour can
be activated by following a link in the page header.

Follow is not the default because outputting merges in follow mode is
tricky ("git log --follow" will not show merges).  We also disable the
graph in follow mode because the commit graph is not simplified so we
end up with frequent gaps in the graph and many lines that do not
connect with any commits we're actually showing.

We also teach the "diff" and "commit" UIs to respect the follow flag on
URLs, causing the single-file version of these UIs to detect renames.
This feature is needed only for commits that rename the path we're
interested in.

For commits before the file has been renamed (i.e. that appear later in
the log list) we change the file path in the links from the log to point
to the old name; this means that links to commits always limit by the
path known to that commit.  If we didn't do this we would need to walk
down the log diff'ing every commit whenever we want to show a commit.
The drawback is that the "Log" link in the top bar of such a page links
to the log limited by the old name, so it will only show pre-rename
commits.  I consider this a reasonable trade-off since the "Back" button
still works and the log matches the path displayed in the top bar.

Since following renames requires running diff on every commit we
consider, I've added a knob to the configuration file to globally
enable/disable this feature.  Note that we may consider a large number
of commits the revision walking machinery no longer performs any path
limitation so we have to examine every commit until we find a page full
of commits that affect the target path or something related to it.

Suggested-by: René Neumann &lt;necoro@necoro.eu&gt;
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Avoid signed bitfields</title>
<updated>2015-03-09T16:38:46Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-03-08T16:32:17Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=12d3d4c3edfcf177c56ca97e5a4b0c8301ca46aa'/>
<id>urn:sha1:12d3d4c3edfcf177c56ca97e5a4b0c8301ca46aa</id>
<content type='text'>
Bitfields are only defined for unsigned types.

Detected by sparse.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Avoid non-ANSI function declarations</title>
<updated>2015-03-09T16:38:30Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-03-08T16:32:16Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=e3d3fffdd447cdb4551549faae65bae5353a2cab'/>
<id>urn:sha1:e3d3fffdd447cdb4551549faae65bae5353a2cab</id>
<content type='text'>
Sparse says things like:

	warning: non-ANSI function declaration of function 'calc_ttl'

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>ui-diff: don't link to single file diff stat</title>
<updated>2014-12-30T09:09:25Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-12-29T22:27:55Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d6c40507711ff6cc19c8fd3f28412845a33faf50'/>
<id>urn:sha1:d6c40507711ff6cc19c8fd3f28412845a33faf50</id>
<content type='text'>
Seeing the diff stat for a single file is pretty useless, so reset the
diff type before generating the links to individual files in the diff
stat so that the links will show a useful diff.

Reported-by: Konstantin Ryabitsev &lt;mricon@kernel.org&gt;
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>ui-diff: add "stat only" diff type</title>
<updated>2014-12-13T11:38:42Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-10-05T09:59:05Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=ddfaef6bb28e697491b25bff5a7b260d44ce6ccf'/>
<id>urn:sha1:ddfaef6bb28e697491b25bff5a7b260d44ce6ccf</id>
<content type='text'>
This prints the diffstat but stops before printing (or generating) any
of the body of the diff.

No cgitrc option is added here so that we can wait to see how useful
this is before letting people set it as the default.

Suggested-by: Konstantin Ryabitsev &lt;mricon@kernel.org&gt;
Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Change "ss" diff flag to an enum</title>
<updated>2014-12-13T11:38:42Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-10-05T09:59:04Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=1830271c5958526425f92ae2b369646b54e3c370'/>
<id>urn:sha1:1830271c5958526425f92ae2b369646b54e3c370</id>
<content type='text'>
This will allow us to introduce a new "stat only" diff mode without
needing an explosion of mutually incompatible flags.

The old "ss" query parameter is still accepted in order to avoid
breaking saved links, but we no longer generate any URIs using it;
instead the new "dt" (diff type) parameter is used.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
</feed>
