summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);