From 097971f5f564dbd832eea774ae0cdcfa03ba35ac Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Fri, 1 Feb 2008 05:07:04 +0100 Subject: Make blame accept absolute paths Blame did not always use prefix_path. Signed-off-by: Robin Rosenberg Signed-off-by: Junio C Hamano --- builtin-blame.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'builtin-blame.c') diff --git a/builtin-blame.c b/builtin-blame.c index 9b4c02e87f..dea640d17b 100644 --- a/builtin-blame.c +++ b/builtin-blame.c @@ -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); } /* -- cgit v1.2.1