+1
-1
flake.nix
+1
-1
flake.nix
+3
-1
go.mod
+3
-1
go.mod
······
······
+85
-6
knotserver/git/diff.go
+85
-6
knotserver/git/diff.go
······-func (g *GitRepo) FormatPatch(base, commit2 *object.Commit) (string, []patchutil.FormatPatch, error) {······
······+func (g *GitRepo) formatSinglePatch(base, commit2 plumbing.Hash, extraArgs ...string) (string, *patchutil.FormatPatch, error) {···+return "", nil, fmt.Errorf("running format-patch on single commit produced more than on patch")···+func (g *GitRepo) commitsBetween(newCommit, oldCommit *object.Commit) ([]*object.Commit, error) {+return nil, fmt.Errorf("old commit %s not found in history of new commit %s", oldCommit.Hash, newCommit.Hash)+func (g *GitRepo) FormatPatch(base, commit2 *object.Commit) (string, []patchutil.FormatPatch, error) {+parentHash = plumbing.NewHash("4b825dc642cb6eb9a060e54bf8d69288fbee4904") // git empty tree hash+additionalArgs = append(additionalArgs, "--add-header", fmt.Sprintf("Change-Id: %s", changeId))+return "", nil, fmt.Errorf("failed to format patch for commit %s: %w", commit.Hash.String(), err)
+1
knotserver/routes.go
+1
knotserver/routes.go
+1
types/repo.go
+1
types/repo.go