diff options
author | Junio C Hamano <junkio@cox.net> | 2007-04-18 11:27:32 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-18 12:30:26 -0700 |
commit | 153920da5b62024c0aceef23252b82ad18e5fe22 (patch) | |
tree | 9b9d73e9f47df7aebd2a5fa5acb25a3f7518126b /t/t6026-merge-attr.sh | |
parent | be89cb239e8ec02e23015675cc8b2d60992a6cfc (diff) | |
download | git-153920da5b62024c0aceef23252b82ad18e5fe22.tar.gz |
Custom low-level merge driver: change the configuration scheme.
This changes the configuration syntax for defining a low-level
merge driver to be:
[merge "<<drivername>>"]
driver = "<<command line>>"
name = "<<driver description>>"
which is much nicer to read and is extensible. Credit goes to
Martin Waitz and Linus.
In addition, when we use an external low-level merge driver, it
is reported as an extra output from merge-recursive, using the
value of merge.<<drivername>.name variable.
The demonstration in t6026 has also been updated.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t6026-merge-attr.sh')
-rwxr-xr-x | t/t6026-merge-attr.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/t/t6026-merge-attr.sh b/t/t6026-merge-attr.sh index 1732b60ed8..56fc341768 100755 --- a/t/t6026-merge-attr.sh +++ b/t/t6026-merge-attr.sh @@ -98,7 +98,9 @@ test_expect_success 'custom merge backend' ' git reset --hard anchor && git config --replace-all \ - merge.driver "custom ./custom-merge %O %A %B 0" && + merge.custom.driver "./custom-merge %O %A %B 0" && + git config --replace-all \ + merge.custom.name "custom merge driver for testing" && git merge master && @@ -117,7 +119,9 @@ test_expect_success 'custom merge backend' ' git reset --hard anchor && git config --replace-all \ - merge.driver "custom ./custom-merge %O %A %B 1" && + merge.custom.driver "./custom-merge %O %A %B 1" && + git config --replace-all \ + merge.custom.name "custom merge driver for testing" && if git merge master then |