-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mh/format-patch-add-header'
* mh/format-patch-add-header: format-patch: add arbitrary email headers
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,21 @@ test_expect_success 'additional command line cc' ' | |
grep "^ *S. E. Cipient <[email protected]>$" patch5 | ||
' | ||
|
||
test_expect_success 'command line headers' ' | ||
git config --unset-all format.headers && | ||
git format-patch --add-header="Cc: R. E. Cipient <[email protected]>" --stdout master..side | sed -e "/^$/q" >patch6 && | ||
grep "^Cc: R. E. Cipient <[email protected]>$" patch6 | ||
' | ||
|
||
test_expect_success 'configuration headers and command line headers' ' | ||
git config --replace-all format.headers "Cc: R. E. Cipient <[email protected]>" && | ||
git format-patch --add-header="Cc: S. E. Cipient <[email protected]>" --stdout master..side | sed -e "/^$/q" >patch7 && | ||
grep "^Cc: R. E. Cipient <[email protected]>,$" patch7 && | ||
grep "^ *S. E. Cipient <[email protected]>$" patch7 | ||
' | ||
|
||
test_expect_success 'multiple files' ' | ||
rm -rf patches/ && | ||
|