Skip to content
Snippets Groups Projects
  • Paulo Gomes's avatar
    19b39e15
    git: Add support to ls-remote with peeled references. Fixes #749 · 19b39e15
    Paulo Gomes authored
    A new PeelingOption field was introduced into ListOptions. The new options
    include the default (and backwards compatible) IgnorePeeled. Plus another
    two variations which either only returns peeled references (OnlyPeeled), or
    append peeled references to the list (AppendPeeled).
    
    The ls-remote example was updated to align with upstream, in which peeled
    references are appended to the results by default.
    
    A new ErrEmptyUrls error is now returned when List or ListContext do not
    receive a URL to work with, to improve overall execution flow.
    
    Signed-off-by: default avatarPaulo Gomes <pjbgf@linux.com>
    git: Add support to ls-remote with peeled references. Fixes #749
    Paulo Gomes authored
    A new PeelingOption field was introduced into ListOptions. The new options
    include the default (and backwards compatible) IgnorePeeled. Plus another
    two variations which either only returns peeled references (OnlyPeeled), or
    append peeled references to the list (AppendPeeled).
    
    The ls-remote example was updated to align with upstream, in which peeled
    references are appended to the results by default.
    
    A new ErrEmptyUrls error is now returned when List or ListContext do not
    receive a URL to work with, to improve overall execution flow.
    
    Signed-off-by: default avatarPaulo Gomes <pjbgf@linux.com>