Re: [PATCH 1/2] t6200-fmt-merge-msg: Exercise 'merge.log' to configure shortlog length
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 28, 2010, 02:05 UTC
- Message-ID
- <20100828020512.GE2004@burratino>
- In-Reply-To
- <20100828020018.GD2004@burratino>
Jonathan Nieder wrote:
Show 15 quoted lines
> Maybe something like this? > > test_expect_success 'setup: clear [merge] configuration' ' > test_might_fail git config --unset-all merge.log && > test_might_fail git config --unset-all merge.summary > ' > > test_expect_success 'set up FETCH_HEAD' ' > git checkout master && > git fetch . left > ' > > test_expect_success 'merge.log=3 limits shortlog length' ' > test_might_fail git config --unset merge.log && > test_might_fail git config --unset merge.summary &&
Erm, these two lines wouldn't be necessary given the earlier setup, of course.
Show 10 quoted lines
> > cat >expected <<-\EOF && > Left #3 > ... > EOF > git -c merge.log=3 fmt-merge-msg <.git/FETCH_HEAD >msg && > > tail -n 2 msg >actual && > test_cmp expected actual > '
Sorry for the noise.
*goes off to sleep*