Japan has a family register called a
Koseki. Since this is only for Japanese nationals, when I got married, I had none, so my family (using my last name), is assigned to my wife, and I am written in the margin as a comment but not shown as part of the family.