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

git fetch: clarify errors with bad characters in globs and branch names #4925

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

ilyagr
Copy link
Contributor

@ilyagr ilyagr commented Nov 20, 2024

The changes are minor, but hopefully will make it clearer that fetch branch patterns
are unlike other bookmark patterns.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

@ilyagr ilyagr marked this pull request as ready for review November 20, 2024 05:47
cli/src/git_util.rs Outdated Show resolved Hide resolved
@ilyagr ilyagr marked this pull request as draft November 20, 2024 18:18
@ilyagr ilyagr force-pushed the ig/branch-glob-doc branch 2 times, most recently from c0af0b7 to 18f0c50 Compare November 20, 2024 18:22
@ilyagr ilyagr marked this pull request as ready for review November 20, 2024 18:34
@ilyagr ilyagr force-pushed the ig/branch-glob-doc branch from 18f0c50 to a39b304 Compare November 20, 2024 18:35
cli/src/commands/git/fetch.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
@ilyagr ilyagr force-pushed the ig/branch-glob-doc branch from a39b304 to 4e5f853 Compare November 28, 2024 22:14
I tried to clarify the text a bit as well.
Create a clearer error when a branch name contains `*`.

Slightly clarify the error message for `?` in branch name/glob.
@ilyagr ilyagr force-pushed the ig/branch-glob-doc branch from 4e5f853 to 893a162 Compare November 28, 2024 22:15
@ilyagr ilyagr merged commit 1b96d27 into main Nov 29, 2024
31 checks passed
@ilyagr ilyagr deleted the ig/branch-glob-doc branch November 29, 2024 19:27
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.

3 participants