Skip to content
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

Enhance git-repl #1160

Merged
merged 18 commits into from
Sep 23, 2024
Merged

Enhance git-repl #1160

merged 18 commits into from
Sep 23, 2024

Conversation

wyattscarpenter
Copy link
Contributor

@wyattscarpenter wyattscarpenter commented Sep 16, 2024

This makes 3 improvements to git-repl:

  • It displays the exit code of the previous command

  • The message at the beginning now tells you how to quit. q and x have been added as commands that quit

  • If git-repl is given arguments, it will be evaluate them as the first command.

Closes #1159

Copy link
Collaborator

@hyperupcall hyperupcall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! These are good changes - everything mostly LGTM - I just had a single nitpick. I'm also thinking that adding x as a way to exit the repl might be an option to much/excessive. Not sure what @spacewander thinks about that

bin/git-repl Outdated Show resolved Hide resolved
@wyattscarpenter
Copy link
Contributor Author

Oddly enough: I only added x because I wanted to add q and assumed that people who prefer the term exit over the term quit would object to my blatant favoritism if I didn't add x as well! I'm quite happy to remove it, myself

Commands.md Show resolved Hide resolved
bin/git-repl Outdated Show resolved Hide resolved
Copy link
Collaborator

@spacewander spacewander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the doc after fixing the typo

man/git-repl.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@hyperupcall hyperupcall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The new changes are much improved

@hyperupcall hyperupcall changed the title enhance git-repl Enhance git-repl Sep 23, 2024
@hyperupcall hyperupcall merged commit 5ca9360 into tj:main Sep 23, 2024
5 checks passed
@wyattscarpenter wyattscarpenter deleted the patch-2 branch September 23, 2024 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

it would be nice if the git repl printed out the exit code of the previous command
3 participants