commit {{.commit.Hash}}
parent {{.commit.ParentHash}}
Author: {{.commit.AuthorName}} <{{.commit.AuthorEmail}}>
Date: {{timeLongFormat .commit.Date}}
{{.commit.Msg}}
Diffstat:
{{range $i, $fs := .commit.FileStats}}
{{$fs.Mode}} |
{{$fs.Name}} |
| |
{{$fs.Total}} |
{{if gt $fs.Adds 0}}{{repeatStr "+" $fs.Adds}}{{end}}{{if gt $fs.Dels 0}}{{repeatStr "-" $fs.Dels}}{{end}} |
{{end}}
{{.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}}(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -179,7 +179,7 @@ main(int argc, char *argv[])
int i, ret = 0;
if (argc < 2) {
- fprintf(stderr, "%s [repodir...]\n", argv[0]);
+ fprintf(stderr, "usage: %s [repodir...]\n", argv[0]);
return 1;
}
diff --git a/stagit.c b/stagit.c
@@ -1184,7 +1184,7 @@ writerefs(FILE *fp)
void
usage(char *argv0)
{
- fprintf(stderr, "%s [-c cachefile | -l commits] "
+ fprintf(stderr, "usage: %s [-c cachefile | -l commits] "
"[-u baseurl] repodir\n", argv0);
exit(1);
}