(ancestor, progeny string)
| 74 | } |
| 75 | |
| 76 | func (g *gitExecuter) IsAncestor(ancestor, progeny string) (bool, error) { |
| 77 | args := []string{"merge-base", "--is-ancestor", ancestor, progeny} |
| 78 | cmd, err := g.client.Command(context.Background(), args...) |
| 79 | if err != nil { |
| 80 | return false, err |
| 81 | } |
| 82 | _, err = cmd.Output() |
| 83 | return err == nil, nil |
| 84 | } |
| 85 | |
| 86 | func (g *gitExecuter) IsDirty() (bool, error) { |
| 87 | changeCount, err := g.client.UncommittedChangeCount(context.Background()) |