mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
ui-patch.c: Add additional newline after each patch
For consistency with git-format-patch(1). Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
This commit is contained in:
parent
334aed8ab4
commit
840858594e
@ -20,7 +20,7 @@ test_expect_success 'find `Subject:` line' '
|
|||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'find `cgit` signature' '
|
test_expect_success 'find `cgit` signature' '
|
||||||
tail -1 tmp | grep "^cgit"
|
tail -2 tmp | head -1 | grep "^cgit"
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'find initial commit' '
|
test_expect_success 'find initial commit' '
|
||||||
@ -32,7 +32,7 @@ test_expect_success 'generate patch for initial commit' '
|
|||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'find `cgit` signature' '
|
test_expect_success 'find `cgit` signature' '
|
||||||
tail -1 tmp | grep "^cgit"
|
tail -2 tmp | head -1 | grep "^cgit"
|
||||||
'
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
@ -80,6 +80,6 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
|
|||||||
|
|
||||||
while ((commit = get_revision(&rev)) != NULL) {
|
while ((commit = get_revision(&rev)) != NULL) {
|
||||||
log_tree_commit(&rev, commit);
|
log_tree_commit(&rev, commit);
|
||||||
printf("-- \ncgit %s\n", cgit_version);
|
printf("-- \ncgit %s\n\n", cgit_version);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user