~tardypad/dotfiles

ref: e0559832d0222c315135f2044b903bc8147a7057 dotfiles/files/docs/git/git-url.scd -rw-r--r-- 840 bytes
e0559832 — Damien Tardy-Panis Decrease font size again 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
git-url(1perso)

# NAME

git-url - Display an URL related to the repository or a commit

# SYNOPSIS

git url [-c _commit_] [-r _remote_] [-t _type_]

# DESCRIPTION

Print an URL related to the repository or a specific object. It is based on:
- the remote config using an URL alias
- a specific "browse" config block using that alias

# OPTIONS

*-c* _commit_
	commit to select information++
default: HEAD

*-r* _remote_
	remote to use++
default: origin

*-t* _type_
	URL type++
default: repo++
valid types:
	- repo: general URL of the repository
	- commit: URL of the selected commit
	- issue: URL of the issue related to selected commit
	- review: URL of the review related to selected commit

# OPERANDS

None

# ENVIRONMENT VARIABLES

None

# FILES

None

# DEPENDENCIES

- git (includes own commands: commit-issue-id, commit-review-id)