summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-10 16:03:16 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-10 16:03:16 -0300
commitc0e546b240be8edef73b8ab23c29c121a5944b3b (patch)
treede30e29252880a4334e7ffbd64c8f2ae338dd19b
parent1d5f29c23761e0a3cb75193048f5c7b2bbcf2715 (diff)
downloadeeshow-c0e546b240be8edef73b8ab23c29c121a5944b3b.tar.gz
eeshow-c0e546b240be8edef73b8ab23c29c121a5944b3b.tar.bz2
eeshow-c0e546b240be8edef73b8ab23c29c121a5944b3b.zip
eeshow/git-file.c (related_other_repo): print warning only once
-rw-r--r--git-file.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-file.c b/git-file.c
index 78d4a9b..6d52020 100644
--- a/git-file.c
+++ b/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;
}