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

cli branch list: list tracked branches #3119

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

prscoelho
Copy link
Contributor

@prscoelho prscoelho commented Feb 22, 2024

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

Closes #3105

cli/src/commands/branch.rs Outdated Show resolved Hide resolved
cli/src/commands/branch.rs Outdated Show resolved Hide resolved
cli/src/commands/branch.rs Outdated Show resolved Hide resolved
@prscoelho prscoelho force-pushed the push-lyrrxuulvyls branch 2 times, most recently from bbdf7da to 151ba06 Compare February 22, 2024 22:21
@prscoelho prscoelho changed the title cli branch list: list tracked branches by remote cli branch list: list tracked branches Feb 22, 2024
Copy link
Contributor

@yuja yuja left a comment

Choose a reason for hiding this comment

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

Thanks!

cli/src/commands/branch.rs Outdated Show resolved Hide resolved
Add an option to list tracked branches only

This option keeps most of the current `--all` printing logic, but:

- Omits local Git-tracking branches by default (can be extended to
  support filtering by remote).
- Skip over the branch altogether if it doesn't contain tracked remotes
- Don't print the untracked_remote_refs at the end

Usage:

`jj branch list -t`
`jj branch list --tracked`
`jj branch list --tracked <branch name>`
@prscoelho prscoelho merged commit e9243a7 into jj-vcs:main Feb 26, 2024
15 checks passed
@prscoelho prscoelho deleted the push-lyrrxuulvyls branch February 29, 2024 02:25
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.

FR: jj branch list --tracked
3 participants