OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d089eba
)
Make blame accept absolute paths
author
Robin Rosenberg
<robin.rosenberg.lists@dewire.com>
Fri, 1 Feb 2008 04:07:04 +0000
(
05:07
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 5 Feb 2008 08:44:10 +0000
(
00:44
-0800)
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>
builtin-blame.c
patch
|
blob
|
history
diff --git
a/builtin-blame.c
b/builtin-blame.c
index
9b4c02e
..
dea640d
100644
(file)
--- 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);
}
/*