aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-04-15 01:15:09 +0000
committerGravatar brain2008-04-15 01:15:09 +0000
commit4cb185b433782e20058fed1efacd7bf7f1dd0bc9 (patch)
tree219b80f9151cbdd3f8541fb3ea02e3278d06ec7a /src/socket.cpp
parentSee configreader.cpp line 764 to see how to declare deprecated items. This is... (diff)
Nuke the ability to define <options:loglevel> from orbit :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9508 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
0 files changed, 0 insertions, 0 deletions
package testgit

import (
	"testing"

	objectid "codeberg.org/lindenii/furgit/object/id"
)

// CommitTree creates a commit from a tree and message, optionally with parents.
func (testRepo *TestRepo) CommitTree(tb testing.TB, tree objectid.ObjectID, message string, parents ...objectid.ObjectID) objectid.ObjectID {
	tb.Helper()

	args := make([]string, 0, 2+2*len(parents)+2)

	args = append(args, "commit-tree", tree.String())
	for _, p := range parents {
		args = append(args, "-p", p.String())
	}

	args = append(args, "-m", message)
	hex := testRepo.Run(tb, args...)

	id, err := objectid.ParseHex(testRepo.algo, hex)
	if err != nil {
		tb.Fatalf("parse commit-tree output %q: %v", hex, err)
	}

	return id
}