-
Notifications
You must be signed in to change notification settings - Fork 2k
Add note on PowerShell in Revision Selection #1518
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing! 👍
I have made some suggestions to improve the text. Let me know if you like/hate those. 😄
Proposed changes:
- Rewrite first sentence to flow better, and to explain the bracket situation a bit better.
- Remove "either" from the second sentence, as I think the sentence is better without that word. The "or" in the middle of the sentence makes it clear that there are two choices to deal with the bracket issue. So "either" is not really adding value.
How to merge these changes into your pull:
If you like my changes, you can put them in your pull request via the GitHub pull interface, read the
GitHub docs, incorporating feedback in your pull request for more on this.
I’m totally fine having my non-native English improved. 😄 One note: PowerShell has become cross-platform. I would guess the same issue is present in powershell on Linux, but I’m not sure. Maybe this should be checked out, or maybe this is good for now and removing the ‘on Windows’ part can be left for an improvement in the future. |
I'm a non-native with English as well, so I'm also learning new things each day.
I've just tried this with PowerShell on Linux. And I can confirm, you need to escape the braces there as well. |
@HonkingGoose , It ended up being quite a few minor change commits 😆 Do you know how it will be merged - if it gets merged? Will it be squashed? |
This comment has been minimized.
This comment has been minimized.
Wow. That was quite some instructions. Hope :-D I guess the comments in this pull request will go a little bananas after the force push, though... |
I've been struggling with the revision selection syntax `HEAD@{...}` and finally found out it's because of curly braces special meaning in PowerShell. I noticed the NOTE on special handling of caret in cmd.exe on Windows. A similar note about curly braces in PowerShell would have saved me some time and I hope to save fellow developers some time by adding in such a note. Thanks to HonkingGoose for his minor changes. Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Correct usage of braces vs brackets Rewrite first sentence to flow better, and to explain the braces situation a bit better. Remove "either" from the second sentence, as I think the sentence is better without that word. The "or" in the middle of the sentence makes it clear that there are two choices to deal with the bracket issue. So "either" is not really adding value. Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
PowerShell on Linux requires the same escapeing of braces as on Windows Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Had to push it twice to be sure I added the extra line feed. Looks like the double line feed doesn't show, but the co-author seems to work. Hope you're satisfied with the three commits. I kinda like to keep things separate, so I extracted the linux vs windows thingy into a separate commit just to make it clear that this is for both operating systems. |
Yeah the double line feed does not really show up in the GitHub commit interface, but the co-author thing works. 👍
I'm happy with your 3 commits. I like your commit messages.
For me, I like to squash everything into one commit, that single commit contains all changes. That way there is no chance of ending up with a invalid state when doing a |
Unless they only want to revet e.g. the linux vs windows part. :-) |
I'd say we're ready for a review by the head maintainer. Hi @ben! 😄 👋 Can you take a look and tell us what you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been a long journey, but this looks great. Thanks! ✨
`` |
Changes
Context
I've been struggling with the revision selection syntax
HEAD@{...}
and finally found out it's because of curly braces special meaning in PowerShell.I noticed the NOTE on special handling of caret in cmd.exe on Windows. A similar note about curly braces in PowerShell would have saved me some time and I hope to save fellow developers some time by adding in such a note.