summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes/1.8.1.5.txt
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2020-11-25 22:12:51 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-25 14:43:48 -0800
commit2076dba281a0e9b16dc670d59a87c62c97b90a74 (patch)
treeea432c9d8d825af6e96cfd0d255ef07dc06ca11f /Documentation/RelNotes/1.8.1.5.txt
parentconfig: replace 'value_regex' with 'value_pattern' (diff)
downloadtgif-2076dba281a0e9b16dc670d59a87c62c97b90a74.tar.xz
t1300: test "set all" mode with value-pattern
Without additional modifiers, 'git config <key> <value>' attempts to set a single value in the .git/config file. When the value-pattern parameter is supplied, this command behaves in a non-trivial manner. Consider 'git config <key> <value> <value-pattern>'. The expected behavior is as follows: 1. If there are multiple existing values that match 'value-pattern', then the command fails. Users should use --replace-all instead. 2. If there is no existing values match 'value-pattern', then the 'key=value' pair is appended, making this 'key' a multi-valued config setting. 3. If there is one existing value that matches 'value-pattern', then the new config has one entry where 'key=value'. Add a test that demonstrates these options. Break from the existing pattern in t1300-config.sh to use 'git config --file=<file>' instead of modifying .git/config directly to prevent possibly incompatible repo states. Also use 'git config --file=<file> --list' for config state comparison instead of the config file format. This makes the tests more readable. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.8.1.5.txt')
0 files changed, 0 insertions, 0 deletions