{
  "$schema": "https://packageurl.org/purl-schemas/purl-type-definition.schema-1.1.json",
  "$id": "https://packageurl.org/purl-types/git-definition.json",
  "type": "git",
  "type_name": "Git",
  "description": "Git-based source packages",
  "repository": {
    "use_repository": true,
    "note": "There is no default package repository, this should be implied from namespace."
  },
  "namespace_definition": {
    "requirement": "required",
    "case_sensitive": true,
    "native_name": "The url path to the git host",
    "note": "The source host for the git repository. See: https://git-scm.com/docs/git-clone.html#_git_urls"
  },
  "name_definition": {
    "requirement": "required",
    "case_sensitive": true,
    "native_name": "repository name with owner",
    "note": "The path on the host to the git repository. See: https://git-scm.com/docs/git-clone.html#_git_urls"
  },
  "version_definition": {
    "requirement": "optional",
    "native_name": "A git reference",
    "note": "The version is a git reference (https://git-scm.com/book/en/v2/Git-Internals-Git-References). Ideally a commit or tag."
  },
  "examples": [
    "pkg:git/codeberg.org/forgejo/forgejo@a72d2c07cfca03b55371089de6aa230d8c951fa0#options/locale_readme.md",
    "pkg:git/cygwin.com/cgit/newlib-cygwin@6d049c54c3314da31d9ffac133a6a2f2dfecaac2",
    "pkg:git/projects.blender.org/blender/blender.git",
    "pkg:git/gitlab.gnome.org/GNOME/adwaita-fonts"
  ]
}
