Skip to content

refs: add list subcommand #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

refs: add list subcommand #1

wants to merge 1 commit into from

Conversation

inosmeet
Copy link
Owner

@inosmeet inosmeet commented Mar 27, 2025

consolidate git show-ref command as git refs list along with some of the flags. Namely:
- --branches | --heads(deprecated)
- --head
- --tags

So, now new subcommands can replace old ones like:

  • git show-ref [--head] -> git refs list [--head]
  • git show-ref [--branches | --heads] -> git refs list [-branches | --heads]
  • git show-ref [--tags] -> git refs list [--tags]

Also add tests for this subcommand along with their flags.

consolidate `git show-ref` command as `git refs list` along with some of
the flags. Namely:
        - --branches | --heads(deprecated)
        - --head
        - --tags

So, now new subcommands can replace old ones like:
- `git show-ref [--head]` -> `git refs list [--head]`
- `git show-ref [--branches | --heads]` -> `git refs list [-branches | --heads]`
- `git show-ref [--tags]` -> `git refs list [--tags]`

Also add tests for this subcommand along with their flags.

Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
@inosmeet inosmeet force-pushed the preview-refs-list branch from 9cb45bf to 2473804 Compare March 27, 2025 09:36
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.

1 participant