From 296602a77de7ac5a213a04c869bea150a17daad2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 16 Nov 2014 00:51:02 -0500 Subject: [PATCH] More abbreviations. --- src | 6 ++++++ src.asc | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src b/src index 5a2afa5..f28120b 100755 --- a/src +++ b/src @@ -510,6 +510,8 @@ The edit flags and EDITOR variable are interpreted are as for commit. The only difference is that existing change comment is appended to any text you specify with switches as the initial conent ppassed to your editor. + +'am' is a synonym for 'amend' """, "checkout":""" src checkout ['revision'] ['file'...] @@ -558,6 +560,8 @@ This command is provided assuming you will use the good practice of beginning each commit with a self-contained summary line. With no revision, dumps a log of the entire current branch. + +'li' is a synonym for 'list'. """, "ignores" : """ You can have a file named .srcignore containing the names of files that @@ -1295,7 +1299,9 @@ dispatch = { "commit": commit_method, "ci": commit_method, "amend": amend_method, + "am": amend_method, "list": list_method, + "li": list_method, "log": log_method, "checkout": checkout_method, "co": checkout_method, diff --git a/src.asc b/src.asc index adeb750..cc67c73 100644 --- a/src.asc +++ b/src.asc @@ -62,6 +62,7 @@ src commit [- | -m string | -f file | -e] ['file'...]:: src amend [- | -m string | -f file | -e] ['revision'] ['file'...]:: Amends the stored comment for a specified revision, defaulting to the latest revision on the current branch. Flags are as for commit. + "am" is a snonym for "amend". src checkout [revision] ['file'...]:: Refresh the working copy of the file(s) from their history files. @@ -89,7 +90,8 @@ src branch [list|-l|delete|del|-d] ['name'] ['revision'] ['file...']:: src list ['revision-range'] ['file'...]:: Sends summary information about the specified commits to standard output. The summary line tagged with '*' is the state that the file would - return to on checkout without a revision-spec. + return to on checkout without a revision-spec. "li" is a synonym + for "list". src log ['revision-range'] ['file'...]:: Sends log information about the specified commits to standard output. -- 2.43.0