2024-06-30 11:09:40 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<title>{{.commit.Msg}} - {{.repoInfo.Name}} - {{.repoInfo.Description}}
|
|
|
|
</title>
|
|
|
|
<link rel="icon" type="image/png" href="{{.relpath}}favicon.png" />
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="stagit Atom Feed" href="{{.relpath}}atom.xml" />
|
|
|
|
<link rel="alternate" type="application/atom+xml" title="stagit Atom Feed (tags)" href="{{.relpath}}tags.xml" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{.relpath}}../"><img src="{{.relpath}}logo.png" alt="" width="32" height="32" /></a></td>
|
|
|
|
<td><h1>{{.repoInfo.Name}}</h1><span class="desc">{{.repoInfo.Description}}</span></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="url">
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
{{if ne .repoInfo.Url ""}}
|
|
|
|
git clone <a href="{{.repoInfo.Url}}">{{.repoInfo.Url}}</a>
|
|
|
|
{{end}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
{{menu .repoInfo .relpath}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<hr/>
|
|
|
|
<div id="content">
|
|
|
|
<pre><b>commit</b> <a href="{{.relpath}}commit/{{.commit.Hash}}.html">{{.commit.Hash}}</a>
|
|
|
|
<b>parent</b> <a href="{{.relpath}}commit/{{.commit.ParentHash}}.html">{{.commit.ParentHash}}</a>
|
|
|
|
<b>Author:</b> {{.commit.AuthorName}} <<a href="mailto:{{.commit.AuthorEmail}}">{{.commit.AuthorEmail}}</a>>
|
|
|
|
<b>Date:</b> {{timeLongFormat .commit.Date}}
|
|
|
|
|
|
|
|
{{.commit.Msg}}
|
|
|
|
<b>Diffstat:</b>
|
2024-06-30 11:20:18 +01:00
|
|
|
<table>
|
2024-06-30 12:02:22 +01:00
|
|
|
{{range $i, $fs := .commit.FileStats}}
|
2024-06-30 11:20:18 +01:00
|
|
|
<tr>
|
2024-06-30 12:02:22 +01:00
|
|
|
<td class="{{$fs.Mode}}">{{$fs.Mode}}</td>
|
|
|
|
<td><a href="#h{{$i}}">{{$fs.Name}}</a></td>
|
2024-06-30 11:20:18 +01:00
|
|
|
<td> | </td>
|
2024-06-30 12:02:22 +01:00
|
|
|
<td class="num">{{$fs.Total}}</td>
|
|
|
|
<td>{{if gt $fs.Adds 0}}<span class="i">{{repeatStr "+" $fs.Adds}}</span>{{end}}{{if gt $fs.Dels 0}}<span class="d">{{repeatStr "-" $fs.Dels}}</span>{{end}}</td>
|
2024-06-30 11:20:18 +01:00
|
|
|
</tr>
|
2024-06-30 12:02:22 +01:00
|
|
|
{{end}}
|
2024-06-30 11:20:18 +01:00
|
|
|
</table></pre><pre>{{.commit.Files}} file{{if ne .commit.Files 1}}s{{end}} changed, {{.commit.Adds}} insertion{{if ne .commit.Adds 1}}s{{end}}(+), {{.commit.Dels}} deletion{{if ne .commit.Dels 1}}s{{end}}(-)
|
|
|
|
<hr/><b>diff --git a/<a id="h0" href="../file/stagit-index.c.html">stagit-index.c</a> b/<a href="../file/stagit-index.c.html">stagit-index.c</a></b>
|
|
|
|
<a href="#h0-0" id="h0-0" class="h">@@ -179,7 +179,7 @@ main(int argc, char *argv[])
|
|
|
|
</a> int i, ret = 0;
|
2024-06-30 11:09:40 +01:00
|
|
|
|
2024-06-30 11:20:18 +01:00
|
|
|
if (argc < 2) {
|
|
|
|
<a href="#h0-0-3" id="h0-0-3" class="d">- fprintf(stderr, "%s [repodir...]\n", argv[0]);
|
|
|
|
</a><a href="#h0-0-4" id="h0-0-4" class="i">+ fprintf(stderr, "usage: %s [repodir...]\n", argv[0]);
|
|
|
|
</a> return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
<b>diff --git a/<a id="h1" href="../file/stagit.c.html">stagit.c</a> b/<a href="../file/stagit.c.html">stagit.c</a></b>
|
|
|
|
<a href="#h1-0" id="h1-0" class="h">@@ -1184,7 +1184,7 @@ writerefs(FILE *fp)
|
|
|
|
</a> void
|
|
|
|
usage(char *argv0)
|
|
|
|
{
|
|
|
|
<a href="#h1-0-3" id="h1-0-3" class="d">- fprintf(stderr, "%s [-c cachefile | -l commits] "
|
|
|
|
</a><a href="#h1-0-4" id="h1-0-4" class="i">+ fprintf(stderr, "usage: %s [-c cachefile | -l commits] "
|
|
|
|
</a> "[-u baseurl] repodir\n", argv0);
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
</pre>
|
2024-06-30 11:09:40 +01:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|