diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-06-22 17:02:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-25 00:20:47 +0200 |
commit | 7f7d712bcfde8afe0a007042d5cb4b809617fb96 (patch) | |
tree | aa093f844c6d8750bab041075823c5f052f808db /t/t4201-shortlog.sh | |
parent | format-patch: use stdout directly (diff) | |
download | git-7f7d712bcfde8afe0a007042d5cb4b809617fb96.tar.xz git-7f7d712bcfde8afe0a007042d5cb4b809617fb96.zip |
shortlog: respect the --output=<file> setting
Thanks to the diff option parsing, we already know about this option.
We just have to make use of it.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4201-shortlog.sh')
-rwxr-xr-x | t/t4201-shortlog.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh index a9773658f0..bd699e11f1 100755 --- a/t/t4201-shortlog.sh +++ b/t/t4201-shortlog.sh @@ -184,4 +184,10 @@ test_expect_success 'shortlog with revision pseudo options' ' git shortlog --exclude=refs/heads/m* --all ' +test_expect_success 'shortlog with --output=<file>' ' + git shortlog --output=shortlog master >output && + test ! -s output && + test_line_count = 7 shortlog +' + test_done |