From fb6d6c026b3feec28c2d60025ea169132fc73c56 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 10 Aug 2016 16:03:16 -0300 Subject: [PATCH] eeshow/git-file.c (related_other_repo): print warning only once --- eeshow/git-file.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eeshow/git-file.c b/eeshow/git-file.c index 78d4a9b..6d52020 100644 --- a/eeshow/git-file.c +++ b/eeshow/git-file.c @@ -402,8 +402,13 @@ static bool related_same_repo(struct vcs_git *vcs_git) static bool related_other_repo(struct vcs_git *vcs_git) { + static bool shown = 0; + /* @@@ find revision <= date of revision in related */ - fprintf(stderr, "warning: related_other_repo is not yet implemented\n"); + if (!shown) + fprintf(stderr, + "warning: related_other_repo is not yet implemented\n"); + shown = 1; return 0; }