Skip to content

add new command to refresh the cache #1420

Description

@sudoforge

maybe worth to make a subcommand to rebuilt the cache? eg. git bug cache refresh or something˙

Originally posted by @bAndie91 in #1332 (comment)


while the original discussion ended up at this sort of feature request due to manual pushing and pulling of refs/bugs and refs/identities, it would be worth having a command to do this for other reasons (e.g. debugging, testing).

Activity

  1. added
    area/cliRelates to the CLI
    kind/featureRelates to a new feature
    priority/backlogHigher priority than priority/awaiting-more-evidence
    on May 14, 2025
  2. MichaelMure commented on May 15, 2025

    @MichaelMure
    Contributor

    There is likely more potential commands for "admin" sort of things (say, remove everything git-bug, ...) so I'd suggest a root namespace for that kind of things instead of specifically the cache.

  3. sudoforge commented on May 15, 2025

    @sudoforge
    ContributorAuthor

    there's git bug wipe today (but it needs a little TLC). in implementing this, i'm thinking something like git bug init --reset-cache as an eventual target (but init doesn't exist today).

    to avoid adding a new command for this today, i think implementing it under wipe makes sense, e.g. wipe --cache-only. 🤷

    edit:

    actually, i think renaming wipe to reset and having different args like:

    • all
    • cache
    • users
    • identities
    • bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliRelates to the CLIkind/featureRelates to a new featurepriority/backlogHigher priority than priority/awaiting-more-evidence

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions