Skip to content

Commit

Permalink
Improved doc and tests for guilt header.
Browse files Browse the repository at this point in the history
Signed-off-by: Per Cederqvist <[email protected]>
Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
Per Cederqvist committed Jan 22, 2015
1 parent 025af2a commit 738713c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Documentation/guilt-header.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ Prints either the topmost patch's header or the header of a specified patch.
-E::
Open the raw patch in an editor, instead of printing it.
<patchname>::
Name of the patch.
Name of the patch. If a patch with exactly this name exists,
use it. Otherwise, treat the name as a regexp; if the regexp
matches a single patch, use it. Otherwise, list all matching
patch names to stderr and fail.

Author
------
Expand Down
9 changes: 9 additions & 0 deletions regression/t-028.out
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ Patch non-existant is not in the series
remove
mode
patch-with-some-desc
% guilt header de
de does not uniquely identify a patch. Did you mean any of these?
mode
patch-with-some-desc
% guilt header des
blah blah blah

Signed-off-by: Commiter Name <commiter@email>

3 changes: 3 additions & 0 deletions regression/t-028.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ shouldfail guilt header non-existant
# patch name is a regexp that just happens to match an existing patch.
shouldfail guilt header '.*'

shouldfail guilt header de
cmd guilt header des

# FIXME: how do we check that -e works?

0 comments on commit 738713c

Please sign in to comment.