-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Enhance git-repl
#1160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Enhance git-repl
#1160
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b26326b
Update git-repl: make it display exit statuses
wyattscarpenter d055422
Update git-repl: docu how to exit repl & add q and x
wyattscarpenter d4c540c
Update git-repl.md: docu exiting in the actual docu as well
wyattscarpenter 1971343
Update git-repl: allow the repl to be started with a command
wyattscarpenter 1296f6d
Update git-repl: oh, wait, it should be ne not eq
wyattscarpenter 0e5ccc9
Update Commands.md: docu the repl arguments now
wyattscarpenter 74f3645
Update git-repl: "nit: Change this to $*"
wyattscarpenter 8c89c51
Update git-repl: remove the x alias
wyattscarpenter a942382
Update Commands.md: add `q` for repl
wyattscarpenter 1bbc0ff
Update git-repl.md: remove x from md
wyattscarpenter 8a2b705
Merge branch 'tj:main' into patch-2
wyattscarpenter e70d2ef
change stylization of error code
wyattscarpenter bb1a967
print out the command taken from the arguments
wyattscarpenter 95ccb62
change typography of inline help message for git-repl
wyattscarpenter f712146
Update documentation for git-repl
wyattscarpenter db419b0
typo
wyattscarpenter af66625
simplify exit_status assignment
wyattscarpenter 11559e7
typo: ‘an’ → ‘and’
wyattscarpenter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,14 +5,20 @@ git-repl(1) -- git read-eval-print-loop | |
|
|
||
| `git-repl` | ||
|
|
||
| `git-repl` [command...] | ||
|
|
||
| ## DESCRIPTION | ||
|
|
||
| Git read-eval-print-loop. Lets you run `git` commands without typing 'git'. | ||
|
|
||
| Commands can be prefixed with an exclamation mark (!) to be interpreted as | ||
| a regular command. | ||
| a regular shell command. | ||
|
|
||
| Any arguments to git repl will be taken collectively as the first command | ||
| to execute in the repl. | ||
|
|
||
| Type `exit` or `quit` to end the repl session. | ||
| Type `exit`, `quit`, or `q` to end the repl session. Ctrl-D and Ctrl-C | ||
| will also work. | ||
|
|
||
| ## COMMANDS | ||
|
|
||
|
|
@@ -28,18 +34,17 @@ git-repl(1) -- git read-eval-print-loop | |
|
|
||
| Equivalent of 'git ls-files'. | ||
|
|
||
| exit|quit | ||
| exit\|quit\|q | ||
|
|
||
| Ends the repl session. | ||
|
|
||
|
|
||
| ## EXAMPLES | ||
|
|
||
| $ git repl | ||
| git version 2.9.2 | ||
| git-extras version 3.0.0 | ||
| type 'ls' to ls files below current directory, | ||
| '!command' to execute any command or just 'subcommand' to execute any git subcommand | ||
| git version 2.34.1 | ||
| git-extras version 7.3.0 | ||
| Type 'ls' to ls files below current directory; '!command' to execute any command or just 'subcommand' to execute any git subcommand; 'quit', 'exit', 'q', ^D, or ^C to exit the git repl. | ||
|
|
||
| git (master)> ls-files | ||
| History.md | ||
|
|
@@ -59,7 +64,7 @@ git-repl(1) -- git read-eval-print-loop | |
|
|
||
| ## AUTHOR | ||
|
|
||
| Written by Tj Holowaychuk <<[email protected]>> | ||
| Written by Tj Holowaychuk <<[email protected]>>. Updated by Wyatt S Carpenter to add display of the previous command's exit status, 'q', and the ability to pass in the initial command as arguments. | ||
|
|
||
| ## REPORTING BUGS | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.