]> granicus.if.org Git - cgit/commitdiff
ui-patch.c: Add additional newline after each patch
authorLukas Fleischer <cgit@cryptocrack.de>
Mon, 26 Aug 2013 18:38:33 +0000 (20:38 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 26 Aug 2013 19:03:23 +0000 (21:03 +0200)
For consistency with git-format-patch(1).

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
tests/t0108-patch.sh
ui-patch.c

index 867d7393d6f0d388055d01d607cae0fd41635b31..33675af58abcf3cc4908cf3de7bd9c58e8ccaad1 100755 (executable)
@@ -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
index 6df105e397a5e8589eecbef7db2489ca8345ed5c..333bb99a3864dda876185080aa88704ea866be30 100644 (file)
@@ -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);
        }
 }