about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-08-26 20:38:33 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-08-26 21:03:23 +0200
commit840858594e8b48560541792b717a71dd802d5d80 (patch)
treec04992d711f13361dcc096c7235f4e1f2cca5244
parentui-patch.c: Fix signature delimiter (diff)
downloadcgit-pink-840858594e8b48560541792b717a71dd802d5d80.tar.gz
cgit-pink-840858594e8b48560541792b717a71dd802d5d80.zip
ui-patch.c: Add additional newline after each patch
For consistency with git-format-patch(1).

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to '')
-rwxr-xr-xtests/t0108-patch.sh4
-rw-r--r--ui-patch.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/t0108-patch.sh b/tests/t0108-patch.sh
index 867d739..33675af 100755
--- a/tests/t0108-patch.sh
+++ b/tests/t0108-patch.sh
@@ -20,7 +20,7 @@ test_expect_success 'find `Subject:` line' '
 '
 
 test_expect_success 'find `cgit` signature' '
-	tail -1 tmp | grep "^cgit"
+	tail -2 tmp | head -1 | grep "^cgit"
 '
 
 test_expect_success 'find initial commit' '
@@ -32,7 +32,7 @@ test_expect_success 'generate patch for initial commit' '
 '
 
 test_expect_success 'find `cgit` signature' '
-	tail -1 tmp | grep "^cgit"
+	tail -2 tmp | head -1 | grep "^cgit"
 '
 
 test_done
diff --git a/ui-patch.c b/ui-patch.c
index 6df105e..333bb99 100644
--- a/ui-patch.c
+++ b/ui-patch.c
@@ -80,6 +80,6 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
 
 	while ((commit = get_revision(&rev)) != NULL) {
 		log_tree_commit(&rev, commit);
-		printf("-- \ncgit %s\n", cgit_version);
+		printf("-- \ncgit %s\n\n", cgit_version);
 	}
 }
d=7d7700804278bc92c8a5e401ae88d2451180abbe&follow=1'>ui-plain: Return 'application/octet-stream' for binary files.Remko Tronçon 2009-06-11use cgit_httpscheme() for atom feedDiego Ongaro 2009-06-11add cgit_httpscheme() -> http:// or https://Diego Ongaro 2009-06-07Return http statuscode 404 on unknown branchLars Hjemli 2009-06-07Add head-include configuration option.Mark Lodato 2009-03-15CGIT 0.8.2.1Lars Hjemli 2009-03-15Fix doc-related glitches in Makefile and .gitignoreLars Hjemli 2009-03-15ui-snapshot: avoid segfault when no filename is specifiedLars Hjemli 2009-03-15fix segfault when displaying empty blobsEric Wong 2009-02-19Add support for HEAD requestsLars Hjemli 2009-02-19Add support for ETag in 'plain' viewLars Hjemli 2009-02-12ui-tree: escape ascii-text properly in hexdump viewLars Hjemli 2009-02-12Makefile: add doc-related targetsLars Hjemli