Merge branch 'ak/format-patch-odir-config'
"git format-patch" learned to notice format.outputDirectory configuration variable. This allows "-o <dir>" option to be omitted on the command line if you always use the same directory in your workflow. * ak/format-patch-odir-config: format-patch: introduce format.outputDirectory configuration
This commit is contained in:
@ -1445,4 +1445,19 @@ test_expect_success 'From line has expected format' '
|
||||
test_cmp from filtered
|
||||
'
|
||||
|
||||
test_expect_success 'format-patch format.outputDirectory option' '
|
||||
test_config format.outputDirectory patches &&
|
||||
rm -fr patches &&
|
||||
git format-patch master..side &&
|
||||
test $(git rev-list master..side | wc -l) -eq $(ls patches | wc -l)
|
||||
'
|
||||
|
||||
test_expect_success 'format-patch -o overrides format.outputDirectory' '
|
||||
test_config format.outputDirectory patches &&
|
||||
rm -fr patches patchset &&
|
||||
git format-patch master..side -o patchset &&
|
||||
test_path_is_missing patches &&
|
||||
test_path_is_dir patchset
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Reference in New Issue
Block a user