From 655b6b211ae6df0186abd740f248939f7ddeaec1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 16:59:18 +0800 Subject: Add descriptive comments to most Go functions --- git_format_patch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_format_patch.go') diff --git a/git_format_patch.go b/git_format_patch.go index 5b5e04e..79a7474 100644 --- a/git_format_patch.go +++ b/git_format_patch.go @@ -12,7 +12,7 @@ import ( "github.com/go-git/go-git/v5/plumbing/object" ) -// get_patch_from_commit formats a commit object as if it was returned by +// fmtCommitPatch formats a commit object as if it was returned by // git-format-patch. func fmtCommitPatch(commit *object.Commit) (final string, err error) { var patch *object.Patch @@ -21,7 +21,7 @@ func fmtCommitPatch(commit *object.Commit) (final string, err error) { var date string var commitTitle, commitDetails string - if _, patch, err = fmtCommitAsPatch(commit); err != nil { + if _, patch, err = commitToPatch(commit); err != nil { return "", err } -- cgit v1.2.3