summaryrefslogtreecommitdiff
path: root/builtin-shortlog.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2007-04-30 22:27:05 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-30 23:57:52 (GMT)
commite44b5d106c2934b93cfba2ea7fb2ed1e32edaae2 (patch)
tree48e3f8ed4347741b6f9644b23ada1ec9bda77364 /builtin-shortlog.c
parent8503ee4394dd47af136019bd8da53e5adec17e5d (diff)
downloadgit-e44b5d106c2934b93cfba2ea7fb2ed1e32edaae2.zip
git-e44b5d106c2934b93cfba2ea7fb2ed1e32edaae2.tar.gz
git-e44b5d106c2934b93cfba2ea7fb2ed1e32edaae2.tar.bz2
Remove pointless calls to access(2) when checking for .mailmap
read_mailmap already returns not 0 in case of error, and nothing seem to be interested in it. It also is silent about the fact (read_mailmap being to chatty would justify the call to access, but there is no point for it to be and it isn't). Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-shortlog.c')
-rw-r--r--builtin-shortlog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index b57a88a6..8d3f742 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -283,8 +283,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
if (argc > 1)
die ("unrecognized argument: %s", argv[1]);
- if (!access(".mailmap", R_OK))
- read_mailmap(&mailmap, ".mailmap", &common_repo_prefix);
+ read_mailmap(&mailmap, ".mailmap", &common_repo_prefix);
if (rev.pending.nr == 0) {
if (isatty(0))