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

revset: add tracked/untracked_remote_branches() #4068

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

scott2000
Copy link
Collaborator

Mentioned in #3528 and #3529.

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

@scott2000 scott2000 force-pushed the tracked-remote-branches branch from 433e4be to 0de177b Compare July 11, 2024 01:34
lib/src/revset.rs Outdated Show resolved Hide resolved
lib/src/view.rs Outdated Show resolved Hide resolved
@scott2000 scott2000 force-pushed the tracked-remote-branches branch 5 times, most recently from 4390034 to b595ef3 Compare July 13, 2024 03:04
@scott2000 scott2000 changed the title revset: add optional tracked arg to remote_branches() revset: add tracked/untracked_remote_branches() Jul 13, 2024
Copy link
Collaborator

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

lib/src/revset.rs Outdated Show resolved Hide resolved
lib/tests/test_revset.rs Outdated Show resolved Hide resolved
Adds support for revset functions `tracked_remote_branches()` and
`untracked_remote_branches()`. I think this would be especially useful
for configuring `immutable_heads()` because rewriting untracked remote
branches usually wouldn't be desirable (since it wouldn't update the
remote branch). It also makes it easy to hide branches that you don't
care about from the log, since you could hide untracked branches and
then only track branches that you care about.
@scott2000 scott2000 force-pushed the tracked-remote-branches branch from b595ef3 to 5e46a9f Compare July 13, 2024 15:08
@scott2000 scott2000 merged commit 2dd75b5 into martinvonz:main Jul 13, 2024
17 checks passed
@scott2000 scott2000 deleted the tracked-remote-branches branch July 13, 2024 15:43
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