Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
blame.c return cleanup
author
David Rientjes
<rientjes@google.com>
Mon, 14 Aug 2006 20:18:11 +0000
(13:18 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 15 Aug 2006 01:38:07 +0000
(18:38 -0700)
Removes conditional from return
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
blame.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
2de21fa
)
diff --git
a/blame.c
b/blame.c
index 7099b53c72dd3d4f586b6ae4ba7583738225523c..54a43d5c54b86b474444b4440604b0df7ac61116 100644
(file)
--- a/
blame.c
+++ b/
blame.c
@@
-351,10
+351,7
@@
static int fill_util_info(struct commit *commit)
assert(util);
assert(util->pathname);
- if (get_blob_sha1(commit->tree, util->pathname, util->sha1))
- return 1;
- else
- return 0;
+ return !!get_blob_sha1(commit->tree, util->pathname, util->sha1);
}
static void alloc_line_map(struct commit *commit)