#git-repository #url #github #associated #branch #scm #gitlab

what_git

A crate for determining which SCM your Git URL is associated with

3 unstable releases

0.6.1 Feb 25, 2021
0.6.0 Nov 1, 2020
0.5.0 Nov 2, 2019

#10 in #scm

21 downloads per month
Used in foxdie

BSD-2-Clause

11KB
154 lines

what_git provides an easy mechanism for associating a given Git repository URL with its source. It supports either GitHub, GitHub Enterprise, Gitlab, or Gitlab Enterprise repositories. Use this crate to structure SCM-agnostic code with minimal branching.

About

what_git associates a repository URL to a known repository source. All you need is an HTTP or Git URL, and a personal access token to the API service your repository is associated with. Provide each of those to the what_git::what_git function, and that's it.

Dependencies

~4–15MB
~202K SLoC