-
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.
tests: Add tests for missing format-patch long options
Exercise format-patch's --signoff, --in-reply-to and --start-number long options. Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -505,4 +505,15 @@ test_expect_success 'format-patch from a subdirectory (3)' ' | |
test -f "$basename" | ||
' | ||
|
||
test_expect_success 'format-patch --in-reply-to' ' | ||
git format-patch -1 --stdout --in-reply-to "[email protected]" > patch8 && | ||
grep "^In-Reply-To: <[email protected]>" patch8 && | ||
grep "^References: <[email protected]>" patch8 | ||
' | ||
|
||
test_expect_success 'format-patch --signoff' ' | ||
git format-patch -1 --signoff --stdout | | ||
grep "^Signed-off-by: $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>" | ||
' | ||
|
||
test_done |
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