Skip to content
  • Jonathan Tan's avatar
    commit-graph: add repo arg to graph readers · dade47c0
    Jonathan Tan authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Add a struct repository argument to the functions in commit-graph.h that
    read the commit graph. (This commit does not affect functions that write
    commit graphs.)
    
    Because the commit graph functions can now read the commit graph of any
    repository, the global variable core_commit_graph has been removed.
    Instead, the config option core.commitGraph is now read on the first
    time in a repository that a commit is attempted to be parsed using its
    commit graph.
    
    This commit includes a test that exercises the functionality on an
    arbitrary repository that is not the_repository.
    
    Signed-off-by: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    dade47c0