To check out a particular branch. This will be used in testing to set
up a particular view of the tree.
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
return
}
+func (r Repo) ResetBranch(branch string, commit string) (out []byte, err error) {
+ out, err = r.gitCmd("checkout", "-B", branch, commit)
+
+ return
+}
+
func (r Repo) FormatPatch(path string, baseline string, branch string) (out []byte, err error) {
out, err = r.gitCmd("format-patch", "-o"+path, baseline+".."+branch)