@@ -13,6 +13,7 @@ SYNOPSIS
[--version=<version>] <file> <git-rev-list-args>
'git bundle' verify [-q | --quiet] <file>
'git bundle' list-heads <file> [<refname>...]
+'git bundle' ls <file> [<refname>...]
'git bundle' unbundle <file> [<refname>...]
DESCRIPTION
@@ -56,6 +57,9 @@ list-heads <file>::
list of references, only references matching those given are
printed out.
+ls <file>::
+ Short alias for `list-heads`.
+
unbundle <file>::
Passes the objects in the bundle to 'git index-pack'
for storage in the repository, then prints the names of all
@@ -30,6 +30,9 @@ COMMANDS
'list'::
Describe the patterns in the sparse-checkout file.
+'ls'::
+ Short alias for `list`.
+
'init'::
Enable the `core.sparseCheckout` setting. If the
sparse-checkout file does not exist, then populate it with
@@ -9,6 +9,7 @@ SYNOPSIS
--------
[verse]
'git stash' list [<options>]
+'git stash' ls [<options>]
'git stash' show [<options>] [<stash>]
'git stash' drop [-q|--quiet] [<stash>]
'git stash' ( pop | apply ) [--index] [-q|--quiet] [<stash>]
@@ -83,6 +84,10 @@ stash@{1}: On master: 9cc0589... Add git-stash
The command takes options applicable to the 'git log'
command to control what is shown and how. See linkgit:git-log[1].
+ls [<options>]::
+
+ Short alias for `list`.
+
show [<options>] [<stash>]::
Show the changes recorded in the stash entry as a diff between the
@@ -11,6 +11,7 @@ SYNOPSIS
[verse]
'git worktree add' [-f] [--detach] [--checkout] [--lock] [-b <new-branch>] <path> [<commit-ish>]
'git worktree list' [--porcelain]
+'git worktree ls' [--porcelain]
'git worktree lock' [--reason <string>] <worktree>
'git worktree move' <worktree> <new-path>
'git worktree prune' [-n] [-v] [--expire <expire>]
@@ -99,6 +100,10 @@ followed by each of the linked working trees. The output details include
whether the working tree is bare, the revision currently checked out, and the
branch currently checked out (or "detached HEAD" if none).
+ls::
+
+Short alias for `list`.
+
lock::
If a working tree is on a portable device or network share which
@@ -31,6 +31,7 @@ static const char * const builtin_bundle_verify_usage[] = {
static const char * const builtin_bundle_list_heads_usage[] = {
N_("git bundle list-heads <file> [<refname>...]"),
+ N_("git bundle ls <file> [<refname>...]"),
NULL
};
@@ -185,7 +186,7 @@ int cmd_bundle(int argc, const char **argv, const char *prefix)
result = cmd_bundle_create(argc, argv, prefix);
else if (!strcmp(argv[0], "verify"))
result = cmd_bundle_verify(argc, argv, prefix);
- else if (!strcmp(argv[0], "list-heads"))
+ else if (!strcmp(argv[0], "list-heads") || !strcmp(argv[0], "ls"))
result = cmd_bundle_list_heads(argc, argv, prefix);
else if (!strcmp(argv[0], "unbundle"))
result = cmd_bundle_unbundle(argc, argv, prefix);
@@ -48,6 +48,7 @@ static void write_patterns_to_file(FILE *fp, struct pattern_list *pl)
static char const * const builtin_sparse_checkout_list_usage[] = {
N_("git sparse-checkout list"),
+ N_("git sparse-checkout ls"),
NULL
};
@@ -644,7 +645,7 @@ int cmd_sparse_checkout(int argc, const char **argv, const char *prefix)
git_config(git_default_config, NULL);
if (argc > 0) {
- if (!strcmp(argv[0], "list"))
+ if (!strcmp(argv[0], "list") || !strcmp(argv[0], "ls"))
return sparse_checkout_list(argc, argv);
if (!strcmp(argv[0], "init"))
return sparse_checkout_init(argc, argv);
@@ -20,6 +20,7 @@
static const char * const git_stash_usage[] = {
N_("git stash list [<options>]"),
+ N_("git stash ls [<options>]"),
N_("git stash show [<options>] [<stash>]"),
N_("git stash drop [-q|--quiet] [<stash>]"),
N_("git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]"),
@@ -36,6 +37,7 @@ static const char * const git_stash_usage[] = {
static const char * const git_stash_list_usage[] = {
N_("git stash list [<options>]"),
+ N_("git stash ls [<options>]"),
NULL
};
@@ -1589,7 +1591,7 @@ int cmd_stash(int argc, const char **argv, const char *prefix)
return !!pop_stash(argc, argv, prefix);
else if (!strcmp(argv[0], "branch"))
return !!branch_stash(argc, argv, prefix);
- else if (!strcmp(argv[0], "list"))
+ else if (!strcmp(argv[0], "list") || !strcmp(argv[0], "ls"))
return !!list_stash(argc, argv, prefix);
else if (!strcmp(argv[0], "show"))
return !!show_stash(argc, argv, prefix);
@@ -16,6 +16,7 @@
static const char * const worktree_usage[] = {
N_("git worktree add [<options>] <path> [<commit-ish>]"),
N_("git worktree list [<options>]"),
+ N_("git worktree ls [<options>]"),
N_("git worktree lock [<options>] <path>"),
N_("git worktree move <worktree> <new-path>"),
N_("git worktree prune [<options>]"),
@@ -1072,7 +1073,7 @@ int cmd_worktree(int ac, const char **av, const char *prefix)
return add(ac - 1, av + 1, prefix);
if (!strcmp(av[1], "prune"))
return prune(ac - 1, av + 1, prefix);
- if (!strcmp(av[1], "list"))
+ if (!strcmp(av[1], "list") || !strcmp(av[1], "ls"))
return list(ac - 1, av + 1, prefix);
if (!strcmp(av[1], "lock"))
return lock_worktree(ac - 1, av + 1, prefix);
For ease-of-use various built-in subcommands now alias 'ls' to 'list' Signed-off-by: Cedric Schwyter <cedricschwyter@bluewin.ch> --- Documentation/git-bundle.txt | 4 ++++ Documentation/git-sparse-checkout.txt | 3 +++ Documentation/git-stash.txt | 5 +++++ Documentation/git-worktree.txt | 5 +++++ builtin/bundle.c | 3 ++- builtin/sparse-checkout.c | 3 ++- builtin/stash.c | 4 +++- builtin/worktree.c | 3 ++- 8 files changed, 26 insertions(+), 4 deletions(-)