commit - 6dc1d418b5067ed561a40409d4f2b2a861dbd5a9
commit + bc26cce8342b78e413cf9bca0416e175ea53bcf3
blob - 93a219c5e608180f4664401f2e8fc3082cdb915a
blob + bff1043aad74f6fd1392cb7a9f88e935b4e83a84
--- got/got.1
+++ got/got.1
.Cm got checkout
can be used.
.Pp
+.It Cm in
+Short alias for
+.Cm init .
.It Cm import [ Fl b Ar branch ] [ Fl m Ar message ] [ Fl r Ar repository-path ] [ Fl I Ar pattern ] directory
Create an initial commit in a repository from the file hierarchy
within the specified
follows the globbing rules documented in
.Xr glob 7 .
.El
+.It Cm im
+Short alias for
+.Cm import .
.It Cm checkout [ Fl b Ar branch ] [ Fl c Ar commit ] [ Fl p Ar path-prefix ] repository-path [ work-tree-path ]
Copy files from a repository into a new work tree.
If the
.Cm got diff
is invoked in a work tree.
.El
+.It Cm di
+Short alias for
+.Cm diff .
.It Cm blame [ Fl c Ar commit ] [ Fl r Ar repository-path ] Ar path
Display line-by-line history of a file at the specified path.
.Pp
.Nm
work tree, use the repository path associated with this work tree.
.El
+.It Cm bl
+Short alias for
+.Cm blame .
.It Cm tree [ Fl c Ar commit ] [ Fl r Ar repository-path ] [ Fl i ] [ Fl R] [ Ar path ]
Display a listing of files and directories at the specified
directory path in the repository.
.It Fl R
Recurse into sub-directories in the repository.
.El
+.It Cm tr
+Short alias for
+.Cm tree .
.It Cm ref [ Fl r Ar repository-path ] [ Fl l ] [ Fl d Ar name ] [ Ar name Ar target ]
Manage references in a repository.
.Pp
blob - 18df91b48a1a61d17594b3b5d352285d9ad558dc
blob + e415b9e5813fa173afa815954653374df55cd29c
--- got/got.c
+++ got/got.c
static const struct got_error* cmd_unstage(int, char *[]);
static struct got_cmd got_commands[] = {
- { "init", cmd_init, usage_init, "" },
- { "import", cmd_import, usage_import, "" },
+ { "init", cmd_init, usage_init, "in" },
+ { "import", cmd_import, usage_import, "im" },
{ "checkout", cmd_checkout, usage_checkout, "co" },
{ "update", cmd_update, usage_update, "up" },
{ "log", cmd_log, usage_log, "" },
- { "diff", cmd_diff, usage_diff, "" },
- { "blame", cmd_blame, usage_blame, "" },
- { "tree", cmd_tree, usage_tree, "" },
+ { "diff", cmd_diff, usage_diff, "di" },
+ { "blame", cmd_blame, usage_blame, "bl" },
+ { "tree", cmd_tree, usage_tree, "tr" },
{ "status", cmd_status, usage_status, "st" },
{ "ref", cmd_ref, usage_ref, "" },
{ "branch", cmd_branch, usage_branch, "br" },