mirror of
https://github.com/go-gitea/git.git
synced 2026-07-19 14:33:37 -04:00
[PR #133] [MERGED] Refactor branch list using src-d/go-git and add GetRefs function #137
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-gitea/git/pull/133
Author: @lafriks
Created: 11/10/2018
Status: ✅ Merged
Merged: 11/15/2018
Merged by: @jonasfranz
Base:
master← Head:feat/refs_gogit📝 Commits (6)
d9cf899Refactor branch list using src-d/go-git and add GetRefs functiona8d1899Fix copyright6cb0e76Fix to reuse ObjectType93ce354Add function to filter refs by prefix5cfc365Fix import order0b52498Optimize if structure📊 Changes
456 files changed (+106076 additions, -749 deletions)
View changed files
📝
Gopkg.lock(+230 -7)📝
Gopkg.toml(+4 -0)➕
ref.go(+18 -0)📝
repo_branch.go(+16 -5)➕
repo_branch_test.go(+39 -0)📝
repo_commit_test.go(+1 -1)➕
repo_ref.go(+51 -0)➕
repo_ref_test.go(+49 -0)📝
vendor/github.com/Unknwon/com/dir.go(+49 -4)📝
vendor/github.com/Unknwon/com/math.go(+2 -2)📝
vendor/github.com/davecgh/go-spew/LICENSE(+2 -2)📝
vendor/github.com/davecgh/go-spew/spew/bypass.go(+91 -98)📝
vendor/github.com/davecgh/go-spew/spew/bypasssafe.go(+2 -2)📝
vendor/github.com/davecgh/go-spew/spew/common.go(+2 -2)📝
vendor/github.com/davecgh/go-spew/spew/config.go(+10 -1)📝
vendor/github.com/davecgh/go-spew/spew/doc.go(+10 -1)📝
vendor/github.com/davecgh/go-spew/spew/dump.go(+9 -9)📝
vendor/github.com/davecgh/go-spew/spew/format.go(+3 -3)📝
vendor/github.com/davecgh/go-spew/spew/spew.go(+1 -1)➕
vendor/github.com/emirpasic/gods/LICENSE(+41 -0)...and 80 more files
📄 Description
GetRefs will be needed to implement Refs API
Add src-d/go-git dependency and refactored GetBranches to use this lib.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.