Merge branch 'jc/setup'

* jc/setup:
  builtin-mv: minimum fix to avoid losing files
  git-add: adjust to the get_pathspec() changes.
  Make blame accept absolute paths
  setup: sanitize absolute and funny paths in get_pathspec()
This commit is contained in:
Junio C Hamano
2008-02-20 16:13:16 -08:00
7 changed files with 352 additions and 53 deletions

View File

@ -1894,9 +1894,7 @@ static unsigned parse_score(const char *arg)
static const char *add_prefix(const char *prefix, const char *path)
{
if (!prefix || !prefix[0])
return path;
return prefix_path(prefix, strlen(prefix), path);
return prefix_path(prefix, prefix ? strlen(prefix) : 0, path);
}
/*