0

Lets say I have two pbtxt files specifying details like so:

person1.pbtxt

person {
  id: 001
  name: "Jobava"
  children: "Jiten"
  children: "Jeffrey"
  children: "Jassi"
}

and person2.pbtxt

person {
  id: 002
  name: "Jillian"
  children: "Jiten"
  children: "Jeffrey"
  children: "Jassi"
}

As seen in this example, the children are the same. Is there a common location I can list the children, and merge them in to both person1.pbtxt and person2.pbtxt?

Something like:

children.pbtxt

children_common {
  children: "Jiten"
  children: "Jeffrey"
  children: "Jassi"
}

and then person1.pbtxt

person {
  id: 001
  name: "Jobava"
  children: children_common
}

person1.pbtxt

person {
  id: 002
  name: "Jillian"
  children: children_common
}

thank you!

simplename
  • 717
  • 7
  • 15

0 Answers0