Lines Matching refs:git
1 # hosted-git-info
3 This will let you identify and transform various git hosts URLs between
5 particular file for direct access without git.
10 var hostedGitInfo = require("hosted-git-info")
11 var info = hostedGitInfo.fromUrl("git@github.com:npm/hosted-git-info.git", opts)
17 project: "hosted-git-info"
22 If the URL can't be matched with a git host, `null` will be returned. We
23 can match git, ssh and https urls. Additionally, we can match ssh connect
24 strings (`git@github.com:npm/hosted-git-info`) and shortcuts (eg,
25 `github:npm/hosted-git-info`). Github specifically, is detected in the case
26 of a third, unprefixed, form: `npm/hosted-git-info`.
31 * info.domain -- The domain for git protocol use
32 * info.user -- The name of the user/org on the git host
33 * info.project -- The name of the project on the git host
50 * Dropping support for a hosted git provider would constitute a breaking
57 * *gitSpecifer* is a URL of a git repository or a SCP-style specifier of one.
60 * *noGitPlus* — If true then `git+` won't be prefixed on URLs.
73 For example `hostedGitInfo.fromUrl("git@github.com:npm/hosted-git-info.git#v1.0.0").file("package.j…
74 would return `https://raw.githubusercontent.com/npm/hosted-git-info/v1.0.0/package.json`
78 eg, `github:npm/hosted-git-info`
82 eg, `https://github.com/npm/hosted-git-info/tree/v1.2.0`,
83 `https://github.com/npm/hosted-git-info/tree/v1.2.0/package.json`,
84 `https://github.com/npm/hosted-git-info/tree/v1.2.0/REAMDE.md#supported-hosts`
88 eg, `https://github.com/npm/hosted-git-info/issues`
92 eg, `https://github.com/npm/hosted-git-info/tree/v1.2.0#readme`
96 eg, `git+https://github.com/npm/hosted-git-info.git`
100 eg, `git+ssh://git@github.com/npm/hosted-git-info.git`
104 eg, `git@github.com:npm/hosted-git-info.git`
108 eg, `npm/hosted-git-info`
112 eg, `https://github.com/npm/hosted-git-info/archive/v1.2.0.tar.gz`
128 SSH connect strings will be normalized into `git+ssh` URLs.