does anyone know a git custom merge strategy for golang styled files with the column-format of the go-stylesheet?
situation
Assume having a struct like this:
type Foo struct {
Bar bool `json:bar`
}
now two branches are modifying this struct:
branch A:
type Foo struct {
Four bool `json:four`
Bar bool `json:bar`
}
branch B:
type Foo struct {
Bar bool `json:bar`
Sixsix string `json:six`
}
actual result
When I now try to merge/rebase these branches, I get obviously a conflict because both branches modified the line defining Foo.Bar.
expected result
I am searching for a custom merge strategy which results in a well formatted struct with merging the conflict automatically.
type Foo struct {
Four bool `json:four`
Bar bool `json:bar`
Sixsix string `json:six`
}