From 554d77934475be1f804c497e3e9f486e12616e1f Mon Sep 17 00:00:00 2001 From: William Montgomery Date: Thu, 11 Aug 2016 14:39:04 -0400 Subject: [PATCH 1/2] Add built in 'exit' command to git-repl --- bin/git-repl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-repl b/bin/git-repl index 3159a61..f92a290 100755 --- a/bin/git-repl +++ b/bin/git-repl @@ -28,7 +28,7 @@ while true; do case $cmd in ls) cmd=ls-files;; "") continue;; - quit) break;; + quit|exit) break;; esac if [[ $cmd == !* ]]; then From d6f505f85abc1e573da3b1b79db3089274c5d56f Mon Sep 17 00:00:00 2001 From: William Montgomery Date: Thu, 11 Aug 2016 15:54:24 -0400 Subject: [PATCH 2/2] Add 'exit' to git-repl command documentation --- Commands.md | 2 ++ man/git-repl.1 | 5 ++++- man/git-repl.html | 6 ++++-- man/git-repl.md | 2 ++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Commands.md b/Commands.md index f69eec0..25ef394 100644 --- a/Commands.md +++ b/Commands.md @@ -248,6 +248,8 @@ bin/git-release git> quit ``` +You can use `exit` instead of `quit`. + ## git commits-since List commits since `date` (defaults to "last week"): diff --git a/man/git-repl.1 b/man/git-repl.1 index 6c08b6d..00ad1e7 100644 --- a/man/git-repl.1 +++ b/man/git-repl.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "GIT\-REPL" "1" "December 2015" "" "" +.TH "GIT\-REPL" "1" "August 2016" "" "" . .SH "NAME" \fBgit\-repl\fR \- git read\-eval\-print\-loop @@ -37,6 +37,9 @@ git> quit . .IP "" 0 . +.P +You can use \fBexit\fR instead of \fBquit\fR\. +. .SH "EXAMPLES" . .SH "AUTHOR" diff --git a/man/git-repl.html b/man/git-repl.html index 39cfb38..b01d76e 100644 --- a/man/git-repl.html +++ b/man/git-repl.html @@ -100,11 +100,13 @@ bin/git-release git> quit +

You can use exit instead of quit.

+

EXAMPLES

AUTHOR

-

Written by Tj Holowaychuk <tj@vision-media.ca>

+

Written by Tj Holowaychuk <tj@vision-media.ca>

REPORTING BUGS

@@ -117,7 +119,7 @@ git> quit
  1. -
  2. December 2015
  3. +
  4. August 2016
  5. git-repl(1)
diff --git a/man/git-repl.md b/man/git-repl.md index dc8cb6a..3eb91df 100644 --- a/man/git-repl.md +++ b/man/git-repl.md @@ -26,6 +26,8 @@ git-repl(1) -- git read-eval-print-loop git> quit + You can use `exit` instead of `quit`. + ## EXAMPLES ## AUTHOR