mirror of
https://github.com/git/git.git
synced 2024-05-28 08:06:23 +02:00
Make blame accept absolute paths
Blame did not always use prefix_path. Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d089ebaad5
commit
097971f5f5
|
@ -1894,9 +1894,7 @@ static unsigned parse_score(const char *arg)
|
||||||
|
|
||||||
static const char *add_prefix(const char *prefix, const char *path)
|
static const char *add_prefix(const char *prefix, const char *path)
|
||||||
{
|
{
|
||||||
if (!prefix || !prefix[0])
|
return prefix_path(prefix, prefix ? strlen(prefix) : 0, path);
|
||||||
return path;
|
|
||||||
return prefix_path(prefix, strlen(prefix), path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue