gitea/modules/git
KN4CK3R 49436c2c62
Keep languages defined in .gitattributes ()
Fixes 

This marks all "defined" languages in the `.gitattributes` file so they
are not removed if they are not of type `programming` or `markup`.


![grafik](https://user-images.githubusercontent.com/1666336/194942021-1e641b60-bb8a-49c6-9a1c-413e7c4ba17d.png)

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
foreachref Go 1.19 format ()
pipeline Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
tests/repos Auto merge pull requests when all checks succeeded via API ()
url Fix some mirror bugs ()
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
batch_reader.go Add more linters to improve code readability ()
blame.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
blame_test.go refactor: move from io/ioutil to io and os package ()
blob.go Read expected buffer size ()
blob_gogit.go Remove legacy `+build:` constraint ()
blob_nogogit.go Add more linters to improve code readability ()
blob_test.go Make git.OpenRepository accept Context ()
command.go Refactor git command arguments and make all arguments to be safe to be used ()
command_race_test.go Remove legacy `+build:` constraint ()
command_test.go Follow improve code quality ()
commit.go Refactor git command arguments and make all arguments to be safe to be used ()
commit_convert_gogit.go Remove legacy `+build:` constraint ()
commit_info.go Use native git variants by default with go-git variants as build tag ()
commit_info_gogit.go Slightly simplify LastCommitCache ()
commit_info_nogogit.go Slightly simplify LastCommitCache ()
commit_info_test.go test: use `T.TempDir` to create temporary test directory ()
commit_reader.go Tagger can be empty, as can Commit and Author - tolerate this ()
commit_test.go Use for a repo action one database transaction ()
diff.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
diff_test.go Prevent off-by-one error on comments on newly appended lines ()
error.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
git.go Refactor git command arguments and make all arguments to be safe to be used ()
git_test.go Refactor legacy git init ()
hook.go format with gofumpt ()
last_commit_cache.go Slightly simplify LastCommitCache ()
last_commit_cache_gogit.go Slightly simplify LastCommitCache ()
last_commit_cache_nogogit.go Slightly simplify LastCommitCache ()
log_name_status.go Refactor git command arguments and make all arguments to be safe to be used ()
notes.go Use native git variants by default with go-git variants as build tag ()
notes_gogit.go Slightly simplify LastCommitCache ()
notes_nogogit.go Slightly simplify LastCommitCache ()
notes_test.go Make git.OpenRepository accept Context ()
parse_gogit.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
parse_gogit_test.go Remove legacy `+build:` constraint ()
parse_nogogit.go Refactor parseTreeEntries, speed up tree list ()
parse_nogogit_test.go Refactor parseTreeEntries, speed up tree list ()
ref.go Add more checks in migration code ()
remote.go Refactor git command arguments and make all arguments to be safe to be used ()
repo.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
repo_archive.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_attribute.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
repo_attribute_test.go format with gofumpt ()
repo_base.go Make git.OpenRepository accept Context ()
repo_base_gogit.go Slightly simplify LastCommitCache ()
repo_base_nogogit.go Slightly simplify LastCommitCache ()
repo_blame.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_blob.go Use native git variants by default with go-git variants as build tag ()
repo_blob_gogit.go Remove legacy `+build:` constraint ()
repo_blob_nogogit.go Remove legacy `+build:` constraint ()
repo_blob_test.go Make git.OpenRepository accept Context ()
repo_branch.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_branch_gogit.go Auto merge pull requests when all checks succeeded via API ()
repo_branch_nogogit.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_branch_test.go Sort branches and tags by date descending ()
repo_commit.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_commit_gogit.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_commit_nogogit.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_commit_test.go Make git.OpenRepository accept Context ()
repo_commitgraph.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_commitgraph_gogit.go Remove legacy `+build:` constraint ()
repo_compare.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
repo_compare_test.go test: use `T.TempDir` to create temporary test directory ()
repo_gpg.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
repo_hook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
repo_index.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_language_stats.go format with gofumpt ()
repo_language_stats_gogit.go Keep languages defined in .gitattributes ()
repo_language_stats_nogogit.go Keep languages defined in .gitattributes ()
repo_language_stats_test.go Remove legacy `+build:` constraint ()
repo_object.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
repo_ref.go Use native git variants by default with go-git variants as build tag ()
repo_ref_gogit.go Remove legacy `+build:` constraint ()
repo_ref_nogogit.go Remove legacy `+build:` constraint ()
repo_ref_test.go Make git.OpenRepository accept Context ()
repo_stats.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_stats_test.go Make git.OpenRepository accept Context ()
repo_tag.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
repo_tag_gogit.go Remove legacy `+build:` constraint ()
repo_tag_nogogit.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_tag_test.go test: use `T.TempDir` to create temporary test directory ()
repo_test.go Make git.OpenRepository accept Context ()
repo_tree.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_tree_gogit.go Refactor git command arguments and make all arguments to be safe to be used ()
repo_tree_nogogit.go Remove legacy `+build:` constraint ()
sha1.go Add more checks in migration code ()
sha1_gogit.go Remove legacy `+build:` constraint ()
sha1_nogogit.go Add more linters to improve code readability ()
sha1_test.go probe if sha before exec git ()
signature.go Use native git variants by default with go-git variants as build tag ()
signature_gogit.go Go 1.19 format ()
signature_nogogit.go Go 1.19 format ()
submodule.go Fix some lints ()
submodule_test.go format with gofumpt ()
tag.go format with gofumpt ()
tag_test.go Fix NPE on try to get tag reference via API ()
tree.go Refactor git command arguments and make all arguments to be safe to be used ()
tree_blob.go Use native git variants by default with go-git variants as build tag ()
tree_blob_gogit.go Remove legacy `+build:` constraint ()
tree_blob_nogogit.go Remove legacy `+build:` constraint ()
tree_entry.go On open repository open common cat file batch and batch-check ()
tree_entry_gogit.go Remove legacy `+build:` constraint ()
tree_entry_mode.go format with gofumpt ()
tree_entry_nogogit.go Remove legacy `+build:` constraint ()
tree_entry_test.go Remove legacy `+build:` constraint ()
tree_gogit.go Refactor parseTreeEntries, speed up tree list ()
tree_nogogit.go Refactor git command arguments and make all arguments to be safe to be used ()
utils.go Add more linters to improve code readability ()
utils_test.go Fix ref links in issue overviews for tags ()

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.