Skip to content

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

@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

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

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
@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