diff --git a/templates/commit.html.tmpl b/templates/commit.html.tmpl index 162d423..30f0c22 100644 --- a/templates/commit.html.tmpl +++ b/templates/commit.html.tmpl @@ -40,18 +40,43 @@ {{.commit.Msg}} Diffstat: -
MLICENSE | 2+-
-
1 file changed, 1 insertion(+), 1 deletion(-)
-        
diff --git a/LICENSE b/LICENSE - @@ -1,6 +1,6 @@ - MIT/X Consortium License + + + + + + + + + + + + + + + +
Mstagit-index.c | 2+-
Mstagit.c | 2+-
{{.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; - -(c) 2015-2022 Hiltjo Posthuma <hiltjo@codemadness.org> - +(c) 2015-2024 Hiltjo Posthuma <hiltjo@codemadness.org> - - Permission is hereby granted, free of charge, to any person obtaining a - copy of this software and associated documentation files (the "Software"), -
+ 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); + } +