1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Merge now copies anchor names

This commit is contained in:
Mike Farah
2021-01-13 09:21:16 +11:00
parent 7518dac99c
commit 55712afea6
3 changed files with 5 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ g: thongs
f: *cat
```
## Merge does not copy anchor names
## Merge copies anchor names
Given a sample.yml file of:
```yaml
a:
@@ -197,7 +197,7 @@ yq eval '.c * .a' sample.yml
will output
```yaml
g: thongs
c: frog
c: &cat frog
```
## Merge with merge anchors