You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/git
Rowan Bohde ac2d97cb61
Link to tree views of submodules if possible (#33424)
This is a follow-up to https://github.com/go-gitea/gitea/pull/33097. 

When linking a submodule at a commit in either the repo view, or a diff
when adding a new submodule, link to the tree view of that submodules
intead of the individual commit. This shows the user the full tree,
instead of the diff of the commit.

This makes the assumption that the tree for a given SHA is at
`<repo_url>/tree/<sha>`. This URL format is supported by both Github &
Gitlab, but not Gitea. To fix this, add a redirect from
`<username>/<repo>/tree/<ref>` to `<username>/<repo>/src/<ref>`, so that
Gitea can support this URL structure.
1 day ago
..
foreachref Use refname:strip-2 instead of refname:short when syncing tags (#28797) 1 year ago
internal
pipeline Inherit submodules from template repository content (#16237) 1 month ago
tests/repos Inherit submodules from template repository content (#16237) 1 month ago
url add submodule diff links (#33097) 3 weeks ago
README.md
attribute.go Refactor git attributes (#29356) 11 months ago
batch.go Refactor the usage of batch catfile (#31754) 5 months ago
batch_reader.go Inherit submodules from template repository content (#16237) 1 month ago
blame.go Refactor pprof labels and process desc (#32909) 1 month ago
blame_sha256_test.go Add `TAGS` to `TEST_TAGS` and fix bugs found with gogit (#31791) 6 months ago
blame_test.go Lazy load object format with command line and don't do it in OpenRepository (#29712) 11 months ago
blob.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
blob_gogit.go Abstract hash function usage (#28138) 1 year ago
blob_nogogit.go Refactor the usage of batch catfile (#31754) 5 months ago
blob_test.go Refactor older tests to use testify (#33140) 3 weeks ago
command.go Support performance trace (#32973) 1 week ago
command_race_test.go
command_test.go Support performance trace (#32973) 1 week ago
commit.go Refactor RefName (#33234) 3 weeks ago
commit_convert_gogit.go Refactor commit signature parser (#30228) 10 months ago
commit_info.go add submodule diff links (#33097) 3 weeks ago
commit_info_gogit.go add submodule diff links (#33097) 3 weeks ago
commit_info_nogogit.go add submodule diff links (#33097) 3 weeks ago
commit_info_test.go
commit_reader.go Enable more `revive` linter rules (#30608) 9 months ago
commit_sha256_test.go Refactor older tests to use testify (#33140) 3 weeks ago
commit_submodule.go add submodule diff links (#33097) 3 weeks ago
commit_submodule_file.go Link to tree views of submodules if possible (#33424) 1 day ago
commit_submodule_file_test.go Link to tree views of submodules if possible (#33424) 1 day ago
commit_test.go Fix `GetCommitBranchStart` bug (#33298) 3 days ago
config.go Fix submodule parsing (#32571) 2 months ago
config_submodule.go Fix submodule parsing (#32571) 2 months ago
config_submodule_test.go Fix submodule parsing (#32571) 2 months ago
config_test.go Fix submodule parsing (#32571) 2 months ago
diff.go Fix parentCommit invalid memory address or nil pointer dereference. (#33204) 2 weeks ago
diff_test.go
error.go Fix git error handling (#32401) 3 months ago
fsck.go Fix submodule parsing (#32571) 2 months ago
git.go Fix submodule parsing (#32571) 2 months ago
git_test.go Fix submodule parsing (#32571) 2 months ago
grep.go Improve grep search (#30843) 9 months ago
grep_test.go Enable tenv and testifylint rules (#32852) 2 months ago
hook.go
last_commit_cache.go Refactor cache and disable go-chi cache (#30417) 10 months ago
last_commit_cache_gogit.go Abstract hash function usage (#28138) 1 year ago
last_commit_cache_nogogit.go
log_name_status.go bump to go 1.23 (#31855) 5 months ago
notes.go
notes_gogit.go Abstract hash function usage (#28138) 1 year ago
notes_nogogit.go
notes_test.go
object_format.go Make sure git version&feature are always prepared (#30877) 9 months ago
object_id.go Make sure git version&feature are always prepared (#30877) 9 months ago
object_id_gogit.go Add support for sha256 repositories (#23894) 1 year ago
object_id_test.go Fix incorrect object id hash function (#30708) 9 months ago
parse.go Inherit submodules from template repository content (#16237) 1 month ago
parse_gogit.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
parse_gogit_test.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 9 months ago
parse_nogogit.go Inherit submodules from template repository content (#16237) 1 month ago
parse_nogogit_test.go Enable tenv and testifylint rules (#32852) 2 months ago
ref.go Refactor RefName (#33234) 3 weeks ago
ref_test.go Refactor RefName (#33234) 3 weeks ago
remote.go Support the new exit code for `git remote` subcommands for git version >=2.30.0 (#33129) 3 weeks ago
repo.go Refactor pprof labels and process desc (#32909) 1 month ago
repo_archive.go Refactor context RefName and RepoAssignment (#33226) 3 weeks ago
repo_archive_test.go Refactor context RefName and RepoAssignment (#33226) 3 weeks ago
repo_attribute.go Fix git error handling (#32401) 3 months ago
repo_attribute_test.go Refactor git attributes (#29356) 11 months ago
repo_base_gogit.go Fix submodule parsing (#32571) 2 months ago
repo_base_nogogit.go Fix submodule parsing (#32571) 2 months ago
repo_blame.go Remove `git.FileBlame` (#25841) 2 years ago
repo_blob.go Improve ObjectFormat interface (#28496) 1 year ago
repo_blob_gogit.go Abstract hash function usage (#28138) 1 year ago
repo_blob_nogogit.go Abstract hash function usage (#28138) 1 year ago
repo_blob_test.go Improve ObjectFormat interface (#28496) 1 year ago
repo_branch.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 11 months ago
repo_branch_gogit.go Fix typo in documentation of GetBranchNames() (#33330) 2 weeks ago
repo_branch_nogogit.go Refactor the usage of batch catfile (#31754) 5 months ago
repo_branch_test.go Enable tenv and testifylint rules (#32852) 2 months ago
repo_commit.go Fix `GetCommitBranchStart` bug (#33298) 3 days ago
repo_commit_gogit.go Fix gogit `GetRefCommitID` (#32705) 2 months ago
repo_commit_nogogit.go Refactor the usage of batch catfile (#31754) 5 months ago
repo_commit_test.go Fix commit range paging (#32944) 1 month ago
repo_commitgraph.go Make sure git version&feature are always prepared (#30877) 9 months ago
repo_commitgraph_gogit.go Update go dependencies and fix go-git (#28893) 1 year ago
repo_compare.go Refactor getpatch/getdiff functions and remove unnecessary fallback (#32817) 1 month ago
repo_compare_test.go Refactor getpatch/getdiff functions and remove unnecessary fallback (#32817) 1 month ago
repo_gpg.go Abstract hash function usage (#28138) 1 year ago
repo_hook.go
repo_index.go Fix clean tmp dir (#32360) 3 months ago
repo_language_stats.go Refactor git attributes (#29356) 11 months ago
repo_language_stats_gogit.go Refactor git attributes (#29356) 11 months ago
repo_language_stats_nogogit.go Refactor the usage of batch catfile (#31754) 5 months ago
repo_language_stats_test.go Refactor older tests to use testify (#33140) 3 weeks ago
repo_object.go Improve ObjectFormat interface (#28496) 1 year ago
repo_ref.go Make API "compare" accept commit IDs (#32801) 2 months ago
repo_ref_gogit.go Abstract hash function usage (#28138) 1 year ago
repo_ref_nogogit.go Improve ObjectFormat interface (#28496) 1 year ago
repo_ref_test.go
repo_stats.go Fix some pending problems (#29985) 11 months ago
repo_stats_test.go
repo_tag.go Refactor commit signature parser (#30228) 10 months ago
repo_tag_gogit.go Fix submodule parsing (#32571) 2 months ago
repo_tag_nogogit.go Fix submodule parsing (#32571) 2 months ago
repo_tag_test.go Refactor older tests to use testify (#33140) 3 weeks ago
repo_test.go Faster git.GetDivergingCommits (#24482) 2 years ago
repo_tree.go Improve ObjectFormat interface (#28496) 1 year ago
repo_tree_gogit.go Add `TAGS` to `TEST_TAGS` and fix bugs found with gogit (#31791) 6 months ago
repo_tree_nogogit.go Refactor the usage of batch catfile (#31754) 5 months ago
signature.go Refactor parseSignatureFromCommitLine (#29054) 12 months ago
signature_gogit.go Refactor parseSignatureFromCommitLine (#29054) 12 months ago
signature_nogogit.go Refactor parseSignatureFromCommitLine (#29054) 12 months ago
signature_test.go Refactor parseSignatureFromCommitLine (#29054) 12 months ago
submodule.go Inherit submodules from template repository content (#16237) 1 month ago
submodule_test.go Inherit submodules from template repository content (#16237) 1 month ago
tag.go Refactor commit signature parser (#30228) 10 months ago
tag_test.go Refactor commit signature parser (#30228) 10 months ago
tree.go Inherit submodules from template repository content (#16237) 1 month ago
tree_blob.go
tree_blob_gogit.go Abstract hash function usage (#28138) 1 year ago
tree_blob_nogogit.go Inherit submodules from template repository content (#16237) 1 month ago
tree_entry.go
tree_entry_gogit.go Abstract hash function usage (#28138) 1 year ago
tree_entry_mode.go
tree_entry_nogogit.go Inherit submodules from template repository content (#16237) 1 month ago
tree_entry_test.go
tree_gogit.go Abstract hash function usage (#28138) 1 year ago
tree_nogogit.go Refactor the usage of batch catfile (#31754) 5 months ago
tree_test.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 1 month ago
utils.go Fix submodule parsing (#32571) 2 months ago
utils_test.go Refactor sha1 and time-limited code (#31023) 9 months ago

README.md

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.