summaryrefslogtreecommitdiff
path: root/file/git-hist.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-30 12:27:23 -0300
committerWerner Almesberger <werner@almesberger.net>2016-10-30 14:12:33 -0300
commita84bff7c2e35e2ed86a44218076b6d1bc9007e32 (patch)
treeeca6bce7d2e537ea6a467b02288efdb0d6c5b125 /file/git-hist.c
parent103531b2065a491d2188468fcc2eac85552c9c4a (diff)
downloadeeshow-a84bff7c2e35e2ed86a44218076b6d1bc9007e32.tar.gz
eeshow-a84bff7c2e35e2ed86a44218076b6d1bc9007e32.tar.bz2
eeshow-a84bff7c2e35e2ed86a44218076b6d1bc9007e32.zip
file/git-hist.h, git-hist.c (vcs_git_summary, ...): make vcs_hist "const"
Diffstat (limited to 'file/git-hist.c')
-rw-r--r--file/git-hist.c6
1 files changed, 3 insertions, 3 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 };