Skip to content
  • Brandon Williams's avatar
    commit: allow partial commits with relative paths · 86238e07
    Brandon Williams authored and Junio C Hamano's avatar Junio C Hamano committed
    Commit 8894d535 (commit: allow partial commits with relative paths,
    2011-07-30) ensured that partial commits were allowed when a user
    supplies a relative pathspec but then this was regressed in 5879f568
    
    
    (remove prefix argument from pathspec_prefix, 2011-09-04) when the
    prefix argument to 'pathspec_prefix' removed and the 'list_paths'
    function wasn't properly adjusted to cope with the change, resulting in
    over-eager pruning of the tree that is overlayed on the index.
    
    This fixes the regression and adds a regression test so this can be
    prevented in the future.
    
    Signed-off-by: default avatarBrandon Williams <bmwill@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    86238e07