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

Feat: depth limited refs -r #5337

Merged
merged 2 commits into from
Aug 27, 2018
Merged

Feat: depth limited refs -r #5337

merged 2 commits into from
Aug 27, 2018

Commits on Aug 27, 2018

  1. Feat: depth limited refs -r

    This adds --max-depth to the "refs" commands and allows limiting
    the fetching of refs per depth. Other than that, it works as before.
    
    Note that clever branch pruning is only made when the --unique flag
    is passed. Otherwise, we re-explore branches to the given depth.
    
    This means that --unique costs memory, but may save time when
    the DAGs contain the same sub-DAGs in several places (specially if
    they are big). On the other side, not using --unique saves
    memory but may involve re-exploring large sub-DAGs.
    
    License: MIT
    Signed-off-by: Hector Sanjuan <hector@protocol.ai>
    hsanjuan committed Aug 27, 2018
    Configuration menu
    Copy the full SHA
    ceb37a3 View commit details
    Browse the repository at this point in the history
  2. Add sharness tests for the refs -r command using --max-depth

    License: MIT
    Signed-off-by: Hector Sanjuan <hector@protocol.ai>
    hsanjuan committed Aug 27, 2018
    Configuration menu
    Copy the full SHA
    fe89e2e View commit details
    Browse the repository at this point in the history