Skip to content

A way to get "gone" branches #583

Closed
Closed

Description

@gabipetrovay

For a branch for which the remote branch has been removed (git push origin :test_branch) we have a gone status locally:

$ git branch -avv
  login                                   630150b [origin/login] The splash container added to the home page
  master                                  b84120d [origin/master] Removed engine-list form package.json
* test_branch                             4ea2cab [origin/test_branch: gone] .service.json

How can we get this status of a branch through the nodegit API?

Activity

  1. johnhaley81 commented on May 20, 2015

    @johnhaley81
    Collaborator

    You're going to have to load up the branches for a remote before you do the fetch with prune and then diff them to find this out. There's no built in method to do this currently.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions