add test files
authorKay Sievers <kay.sievers@suse.de>
Mon, 14 Nov 2005 04:43:02 +0000 (05:43 +0100)
committerKay Sievers <kay.sievers@suse.de>
Mon, 14 Nov 2005 04:43:02 +0000 (05:43 +0100)
gitweb.cgi
test/file with spaces [new file with mode: 0644]
test/file+plus+sign [new file with mode: 0644]

index b8f153788a882e65ee5f13745a57fc7b9530a6ab..615af99e2caa377112cdcd4691bbc960a6ecac7f 100755 (executable)
@@ -2047,6 +2047,7 @@ sub git_history {
                              escapeHTML(chop_str($co{'title'}, 50)) . "</b>") . "</td>\n" .
                              "<td class=\"link\">" .
                              $cgi->a({-href => "$my_uri?p=$project;a=commit;h=$commit"}, "commit") .
+                             " | " . $cgi->a({-href => "$my_uri?p=$project;a=commitdiff;h=$commit"}, "commitdiff") .
                              " | " . $cgi->a({-href => "$my_uri?p=$project;a=blob;hb=$commit;f=$file_name"}, "blob");
                        my $blob = git_get_hash_by_path($hash, $file_name);
                        my $blob_parent = git_get_hash_by_path($commit, $file_name);
diff --git a/test/file with spaces b/test/file with spaces
new file mode 100644 (file)
index 0000000..e6a87a6
--- /dev/null
@@ -0,0 +1,4 @@
+This
+filename
+has
+spaces.
diff --git a/test/file+plus+sign b/test/file+plus+sign
new file mode 100644 (file)
index 0000000..ab8050c
--- /dev/null
@@ -0,0 +1,6 @@
+This
+file
+has
++
+plus
+chars.