summaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-30 15:27:23 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-30 17:12:33 (GMT)
commita84bff7c2e35e2ed86a44218076b6d1bc9007e32 (patch)
treeeca6bce7d2e537ea6a467b02288efdb0d6c5b125 /file
parent103531b2065a491d2188468fcc2eac85552c9c4a (diff)
downloadeeshow-a84bff7c2e35e2ed86a44218076b6d1bc9007e32.zip
eeshow-a84bff7c2e35e2ed86a44218076b6d1bc9007e32.tar.gz
eeshow-a84bff7c2e35e2ed86a44218076b6d1bc9007e32.tar.bz2
file/git-hist.h, git-hist.c (vcs_git_summary, ...): make vcs_hist "const"
Diffstat (limited to 'file')
-rw-r--r--file/git-hist.c6
-rw-r--r--file/git-hist.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/file/git-hist.c b/file/git-hist.c
index f878fc0..237fd19 100644
--- a/file/git-hist.c
+++ b/file/git-hist.c
@@ -322,7 +322,7 @@ char *vcs_git_get_rev(struct vcs_hist *h)
}
-const char *vcs_git_summary(struct vcs_hist *h)
+const char *vcs_git_summary(const struct vcs_hist *h)
{
const char *summary;
@@ -336,7 +336,7 @@ const char *vcs_git_summary(struct vcs_hist *h)
}
-char *vcs_git_summary_for_pango(struct vcs_hist *h,
+char *vcs_git_summary_for_pango(const struct vcs_hist *h,
char *(*formatter)(const char *fmt, ...))
{
const char *summary;
@@ -378,7 +378,7 @@ static char *append(char *s, char *add)
* the very specific constraints imposed by the markup format of Pango.
*/
-char *vcs_git_long_for_pango(struct vcs_hist *h,
+char *vcs_git_long_for_pango(const struct vcs_hist *h,
char *(*formatter)(const char *fmt, ...))
{
git_buf buf = { 0 };
diff --git a/file/git-hist.h b/file/git-hist.h
index 5e2aa56..908b2d6 100644
--- a/file/git-hist.h
+++ b/file/git-hist.h
@@ -56,10 +56,10 @@ struct vcs_history *vcs_git_history(const char *path, unsigned depth);
char *vcs_git_get_rev(struct vcs_hist *h);
bool vcs_is_empty(const struct vcs_history *history);
-const char *vcs_git_summary(struct vcs_hist *hist);
-char *vcs_git_summary_for_pango(struct vcs_hist *hist,
+const char *vcs_git_summary(const struct vcs_hist *hist);
+char *vcs_git_summary_for_pango(const struct vcs_hist *hist,
char *(*formatter)(const char *fmt, ...));
-char *vcs_git_long_for_pango(struct vcs_hist *hist,
+char *vcs_git_long_for_pango(const struct vcs_hist *hist,
char *(*formatter)(const char *fmt, ...));
unsigned threads_number(const struct vcs_history *history);