diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-11 13:49:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-11 13:49:11 -0700 |
commit | e43997979ecc69bb9b9720a080a3897738e00f19 (patch) | |
tree | bb3885fa10e746a64b7ac7781fd4c51828842f4f /t | |
parent | 8a396c02fdc7efa787be20074ae08059e3f80d14 (diff) | |
parent | a334e1254c0c2d55f20b271872fbac9a6a67218b (diff) | |
download | git-e43997979ecc69bb9b9720a080a3897738e00f19.tar.gz |
Merge branch 'tv/rebase-stat'
* tv/rebase-stat:
git-pull: Allow --stat and --no-stat to be used with --rebase
git-rebase: Add --stat and --no-stat for producing diffstat on rebase
Diffstat (limited to 't')
-rwxr-xr-x | t/t3406-rebase-message.sh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/t/t3406-rebase-message.sh b/t/t3406-rebase-message.sh index 5391080943..85fc7c4af8 100755 --- a/t/t3406-rebase-message.sh +++ b/t/t3406-rebase-message.sh @@ -22,7 +22,8 @@ test_expect_success setup ' git checkout topic && quick_one A && quick_one B && - quick_one Z + quick_one Z && + git tag start ' @@ -41,4 +42,24 @@ test_expect_success 'rebase -m' ' ' +test_expect_success 'rebase --stat' ' + git reset --hard start + git rebase --stat master >diffstat.txt && + grep "^ fileX | *1 +$" diffstat.txt +' + +test_expect_success 'rebase w/config rebase.stat' ' + git reset --hard start + git config rebase.stat true && + git rebase master >diffstat.txt && + grep "^ fileX | *1 +$" diffstat.txt +' + +test_expect_success 'rebase -n overrides config rebase.stat config' ' + git reset --hard start + git config rebase.stat true && + git rebase -n master >diffstat.txt && + ! grep "^ fileX | *1 +$" diffstat.txt +' + test_done |