From 27b45a1ef5298fdc58547b380ca689b873a220c7 Mon Sep 17 00:00:00 2001 From: Vladimir Buzuev Date: Sat, 3 Apr 2021 16:41:25 -0700 Subject: [PATCH] go gmt --- repository.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/repository.go b/repository.go index b70a9cb..cb82fc3 100644 --- a/repository.go +++ b/repository.go @@ -739,26 +739,26 @@ func (r *Repository) RemoveMessage() error { if cErr < 0 { return MakeGitError(cErr) } - return nil + return nil } type RepositoryItem int const ( - RepositoryItemGitDir RepositoryItem = C.GIT_REPOSITORY_ITEM_GITDIR - RepositoryItemWorkDir RepositoryItem = C.GIT_REPOSITORY_ITEM_WORKDIR - RepositoryItemCommonDir RepositoryItem = C.GIT_REPOSITORY_ITEM_COMMONDIR - RepositoryItemIndex RepositoryItem = C.GIT_REPOSITORY_ITEM_INDEX - RepositoryItemObjects RepositoryItem = C.GIT_REPOSITORY_ITEM_OBJECTS - RepositoryItemRefs RepositoryItem = C.GIT_REPOSITORY_ITEM_REFS + RepositoryItemGitDir RepositoryItem = C.GIT_REPOSITORY_ITEM_GITDIR + RepositoryItemWorkDir RepositoryItem = C.GIT_REPOSITORY_ITEM_WORKDIR + RepositoryItemCommonDir RepositoryItem = C.GIT_REPOSITORY_ITEM_COMMONDIR + RepositoryItemIndex RepositoryItem = C.GIT_REPOSITORY_ITEM_INDEX + RepositoryItemObjects RepositoryItem = C.GIT_REPOSITORY_ITEM_OBJECTS + RepositoryItemRefs RepositoryItem = C.GIT_REPOSITORY_ITEM_REFS RepositoryItemPackedRefs RepositoryItem = C.GIT_REPOSITORY_ITEM_PACKED_REFS - RepositoryItemRemotes RepositoryItem = C.GIT_REPOSITORY_ITEM_REMOTES - RepositoryItemConfig RepositoryItem = C.GIT_REPOSITORY_ITEM_CONFIG - RepositoryItemInfo RepositoryItem = C.GIT_REPOSITORY_ITEM_INFO - RepositoryItemHooks RepositoryItem = C.GIT_REPOSITORY_ITEM_HOOKS - RepositoryItemLogs RepositoryItem = C.GIT_REPOSITORY_ITEM_LOGS - RepositoryItemModules RepositoryItem = C.GIT_REPOSITORY_ITEM_MODULES - RepositoryItemWorkTrees RepositoryItem = C.GIT_REPOSITORY_ITEM_WORKTREES + RepositoryItemRemotes RepositoryItem = C.GIT_REPOSITORY_ITEM_REMOTES + RepositoryItemConfig RepositoryItem = C.GIT_REPOSITORY_ITEM_CONFIG + RepositoryItemInfo RepositoryItem = C.GIT_REPOSITORY_ITEM_INFO + RepositoryItemHooks RepositoryItem = C.GIT_REPOSITORY_ITEM_HOOKS + RepositoryItemLogs RepositoryItem = C.GIT_REPOSITORY_ITEM_LOGS + RepositoryItemModules RepositoryItem = C.GIT_REPOSITORY_ITEM_MODULES + RepositoryItemWorkTrees RepositoryItem = C.GIT_REPOSITORY_ITEM_WORKTREES ) func (r *Repository) ItemPath(item RepositoryItem) (string, error) {